Fix forge 1.7.10 data
This commit is contained in:
parent
3bf576d5d5
commit
1a3aff28dc
@ -217,7 +217,6 @@ public class ForgeChunk_All extends CharFaweChunk<Chunk, ForgeQueue_All> {
|
|||||||
NBTTagCompound tag = (NBTTagCompound) ForgeQueue_All.methodFromNative.invoke(null, nativeTag);
|
NBTTagCompound tag = (NBTTagCompound) ForgeQueue_All.methodFromNative.invoke(null, nativeTag);
|
||||||
tag.removeTag("UUIDMost");
|
tag.removeTag("UUIDMost");
|
||||||
tag.removeTag("UUIDLeast");
|
tag.removeTag("UUIDLeast");
|
||||||
System.out.println(tag);
|
|
||||||
entity.readFromNBT(tag);
|
entity.readFromNBT(tag);
|
||||||
entity.setPositionAndRotation(x, y, z, yaw, pitch);
|
entity.setPositionAndRotation(x, y, z, yaw, pitch);
|
||||||
nmsWorld.spawnEntityInWorld(entity);
|
nmsWorld.spawnEntityInWorld(entity);
|
||||||
|
@ -252,7 +252,7 @@ public class ForgeChunk_All extends CharFaweChunk<Chunk, ForgeQueue_All> {
|
|||||||
}
|
}
|
||||||
byte[] currentIdArray = section.getBlockLSBArray();
|
byte[] currentIdArray = section.getBlockLSBArray();
|
||||||
NibbleArray currentDataArray = section.getMetadataArray();
|
NibbleArray currentDataArray = section.getMetadataArray();
|
||||||
boolean data = currentDataArray != null;
|
boolean data = currentDataArray != null && newDataArray != null;
|
||||||
if (!data) {
|
if (!data) {
|
||||||
section.setBlockMetadataArray(newDataArray);
|
section.setBlockMetadataArray(newDataArray);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user