Fixed custom entities unique ids.

This commit is contained in:
LexManos 2016-03-22 15:29:42 -07:00
parent 25cd7cc3e1
commit 0ce790ca2b

View file

@ -140,8 +140,8 @@ public abstract class FMLMessage {
super.toBytes(buf); super.toBytes(buf);
ByteBufUtils.writeUTF8String(buf, modId); ByteBufUtils.writeUTF8String(buf, modId);
buf.writeInt(modEntityTypeId); buf.writeInt(modEntityTypeId);
buf.writeLong(entityUUID.getMostSignificantBits()); buf.writeLong(entity.getUniqueID().getMostSignificantBits());
buf.writeLong(entityUUID.getLeastSignificantBits()); buf.writeLong(entity.getUniqueID().getLeastSignificantBits());
// posX, posY, posZ // posX, posY, posZ
buf.writeDouble(entity.posX); buf.writeDouble(entity.posX);
buf.writeDouble(entity.posY); buf.writeDouble(entity.posY);