mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-13 00:37:52 +00:00
Use dragon_immune block tag instead of manually checking blocks (#5792)
This commit is contained in:
1 parent
0b1196db3f
commit
4bd7427b70
1 file changed
+1
-11
@@ -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))
|
||||
|
||||
Reference in new issue
Block a user