Prevent minecarts disguised as minecarts from getting a Y height modifier

This commit is contained in:
libraryaddict 2013-11-24 06:38:46 +13:00
parent 1fc72e10cc
commit 951d60f0aa

View File

@ -374,7 +374,17 @@ public class PacketsManager {
case MINECART_HOPPER: case MINECART_HOPPER:
case MINECART_MOB_SPAWNER: case MINECART_MOB_SPAWNER:
case MINECART_TNT: case MINECART_TNT:
switch (entity.getType()) {
case MINECART:
case MINECART_CHEST:
case MINECART_FURNACE:
case MINECART_HOPPER:
case MINECART_MOB_SPAWNER:
case MINECART_TNT:
return 0;
default:
return 0.4; return 0.4;
}
case ARROW: case ARROW:
case BOAT: case BOAT:
case EGG: case EGG: