Skip to content

Conversation

MCdragonmasters
Copy link

Allow offhand buckets, fix client desync when events are cancelled, add FluidPlaceEvent, and some code cleanup

Copy link
Member

@Bloeckchengrafik Bloeckchengrafik left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution!

Comment on lines +115 to +138
fun isWaterloggable(block: Block): Boolean {
val tags = Block.staticRegistry()
return (tags.getTag(Key.key("minecraft:stairs"))!!.contains(block)
|| tags.getTag(Key.key("minecraft:slabs"))!!.contains(block)
|| tags.getTag(Key.key("minecraft:fences"))!!.contains(block)
|| tags.getTag(Key.key("minecraft:trapdoors"))!!.contains(block))
// if (block.compare(Block.LADDER)
// || block.compare(Block.SUGAR_CANE)
// || block.compare(Block.BUBBLE_COLUMN)
// || block.compare(Block.NETHER_PORTAL)
// || block.compare(Block.END_PORTAL)
// || block.compare(Block.END_GATEWAY)
// || block.compare(Block.KELP)
// || block.compare(Block.KELP_PLANT)
// || block.compare(Block.SEAGRASS)
// || block.compare(Block.TALL_SEAGRASS)
// || block.compare(Block.SEA_PICKLE)
// || tags.getTag(Tag.BasicType.BLOCKS, "minecraft:signs")!!.contains(block.namespace())
// || block.name().contains("door")
// || block.name().contains("coral")
// if (tags.getTag(Key.key("minecraft:stairs"))!!.contains(block)) {
// return true
// }
// return !block.isSolid || !block.isAir
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think a custom tag would fit better here, so all blocks stay supported and the logic is cleaner. (RegistryTag#direct)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants