Bit masked the entity ID to change the range from -127-127 to 0-255

This commit is contained in:
LexManos committed 2012-05-05 21:20:34 -07:00
1 parent 9f3ab1e601
commit fd2fa90bb2
1 file changed
+1 -1
@@ -75,7 +75,7 @@ public class PacketEntitySpawn extends ForgePacket
{
data.writeInt(modID);
data.writeInt(entityID);
data.writeByte(typeID);
data.writeByte(typeID & 0xFF);
data.writeInt(posX);
data.writeInt(posY);
data.writeInt(posZ);