Fix entity rewrites on falling blocks.

This commit is contained in:
md_5 2013-03-11 14:28:51 +11:00
parent a3e1493ce1
commit cd1420d9cd

View File

@ -42,7 +42,7 @@ public class EntityMap
}; };
entityIds[0x17] = new int[] entityIds[0x17] = new int[]
{ {
1, 20 1 //, 20
}; };
entityIds[0x18] = new int[] entityIds[0x18] = new int[]
{ {
@ -149,5 +149,16 @@ public class EntityMap
} }
} }
} }
if ( packetId == 0x17 )
{
int type = packet.getByte( 5 );
if ( type >= 60 && type <= 62 )
{
if ( packet.getInt( 20 ) == oldId )
{
packet.setInt( 20, newId );
}
}
}
} }
} }