From 4bd7427b70ae93fa12c336241ffb96231ad6649f Mon Sep 17 00:00:00 2001 From: kashike Date: Tue, 11 Jun 2019 22:04:13 -0700 Subject: [PATCH] Use dragon_immune block tag instead of manually checking blocks (#5792) --- .../common/extensions/IForgeBlock.java | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/src/main/java/net/minecraftforge/common/extensions/IForgeBlock.java b/src/main/java/net/minecraftforge/common/extensions/IForgeBlock.java index 0e27a59cf7..52498383c9 100644 --- a/src/main/java/net/minecraftforge/common/extensions/IForgeBlock.java +++ b/src/main/java/net/minecraftforge/common/extensions/IForgeBlock.java @@ -975,17 +975,7 @@ public interface IForgeBlock { if (entity instanceof EnderDragonEntity) { - return this != Blocks.BARRIER && - this != Blocks.OBSIDIAN && - this != Blocks.END_STONE && - this != Blocks.BEDROCK && - this != Blocks.END_PORTAL && - this != Blocks.END_PORTAL_FRAME && - this != Blocks.COMMAND_BLOCK && - this != Blocks.REPEATING_COMMAND_BLOCK && - this != Blocks.CHAIN_COMMAND_BLOCK && - this != Blocks.IRON_BARS && - this != Blocks.END_GATEWAY; + return !BlockTags.field_219754_W.contains(this.getBlock()); } else if ((entity instanceof WitherEntity) || (entity instanceof WitherSkullEntity))