Fix forge 1.7.10 data

This commit is contained in:
Jesse Boyd 2016-11-30 14:30:42 +11:00
parent 3bf576d5d5
commit 1a3aff28dc
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 1 additions and 2 deletions

View File

@ -217,7 +217,6 @@ public class ForgeChunk_All extends CharFaweChunk<Chunk, ForgeQueue_All> {
NBTTagCompound tag = (NBTTagCompound) ForgeQueue_All.methodFromNative.invoke(null, nativeTag);
tag.removeTag("UUIDMost");
tag.removeTag("UUIDLeast");
System.out.println(tag);
entity.readFromNBT(tag);
entity.setPositionAndRotation(x, y, z, yaw, pitch);
nmsWorld.spawnEntityInWorld(entity);

View File

@ -252,7 +252,7 @@ public class ForgeChunk_All extends CharFaweChunk<Chunk, ForgeQueue_All> {
}
byte[] currentIdArray = section.getBlockLSBArray();
NibbleArray currentDataArray = section.getMetadataArray();
boolean data = currentDataArray != null;
boolean data = currentDataArray != null && newDataArray != null;
if (!data) {
section.setBlockMetadataArray(newDataArray);
}