-
Bug
-
Resolution: Fixed
-
Minecraft 16w35a, Minecraft 16w36a
-
None
-
Windows10
Java 1.8.0 25 64bit
-
Confirmed
When mobGriefing gamerule is false, silverfish won't even move, although will attack when on survival mode. Most likely caused by the fix of MC-80586.
Code analysis by Neko:
The reason for this is the Silverfish first checks if mobGriefing is false, if so, the code returns false and the Silverfish cannot attempt to path find.
EntitySilverfish.java (MCP)
static class AIHideInStone extends EntityAIWander { public boolean shouldExecute() { if (!this.silverfish.worldObj.getGameRules().getBoolean("mobGriefing")) { return false; } else if (this.silverfish.getAttackTarget() != null) { return false; } else if (!this.silverfish.getNavigator().noPath()) { return false; } else //... } }