Use dragon_immune block tag instead of manually checking blocks (#5792)

This commit is contained in:
kashike 2019-06-11 22:04:13 -07:00 committed by tterrag
parent 0b1196db3f
commit 4bd7427b70

View file

@ -975,17 +975,7 @@ public interface IForgeBlock
{ {
if (entity instanceof EnderDragonEntity) if (entity instanceof EnderDragonEntity)
{ {
return this != Blocks.BARRIER && return !BlockTags.field_219754_W.contains(this.getBlock());
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;
} }
else if ((entity instanceof WitherEntity) || else if ((entity instanceof WitherEntity) ||
(entity instanceof WitherSkullEntity)) (entity instanceof WitherSkullEntity))