Fixed custom entities unique ids.

This commit is contained in:
LexManos 2016-03-22 15:29:42 -07:00
parent 25cd7cc3e1
commit 0ce790ca2b
1 changed files with 2 additions and 2 deletions

View File

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