Fix for forge tile entities
This commit is contained in:
parent
c86f556a03
commit
3a8d54bb78
|
@ -89,8 +89,9 @@ public class ForgeQueue_All extends NMSMappedFaweQueue<World, Chunk, ExtendedBlo
|
|||
public CompoundTag getTag(TileEntity tile) {
|
||||
try {
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
tile.readFromNBT(tag); // readTagIntoEntity
|
||||
return (CompoundTag) methodToNative.invoke(null, tag);
|
||||
tile.writeToNBT(tag); // readTagIntoEntity
|
||||
CompoundTag result = (CompoundTag) methodToNative.invoke(null, tag);
|
||||
return result;
|
||||
} catch (Exception e) {
|
||||
MainUtil.handleError(e);
|
||||
return null;
|
||||
|
|
|
@ -82,7 +82,7 @@ public class ForgeQueue_All extends NMSMappedFaweQueue<World, Chunk, ExtendedBlo
|
|||
public CompoundTag getTag(TileEntity tile) {
|
||||
try {
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
tile.readFromNBT(tag); // readTagIntoEntity
|
||||
tile.writeToNBT(tag); // readTagIntoEntity
|
||||
return (CompoundTag) methodToNative.invoke(null, tag);
|
||||
} catch (Exception e) {
|
||||
MainUtil.handleError(e);
|
||||
|
|
|
@ -82,7 +82,7 @@ public class ForgeQueue_All extends NMSMappedFaweQueue<World, Chunk, ExtendedBlo
|
|||
public CompoundTag getTag(TileEntity tile) {
|
||||
try {
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
tile.readFromNBT(tag); // readTagIntoEntity
|
||||
tile.writeToNBT(tag); // readTagIntoEntity
|
||||
return (CompoundTag) methodToNative.invoke(null, tag);
|
||||
} catch (Exception e) {
|
||||
MainUtil.handleError(e);
|
||||
|
|
|
@ -89,7 +89,7 @@ public class ForgeQueue_All extends NMSMappedFaweQueue<World, Chunk, ExtendedBlo
|
|||
public CompoundTag getTag(TileEntity tile) {
|
||||
try {
|
||||
NBTTagCompound tag = new NBTTagCompound();
|
||||
tile.readFromNBT(tag); // readTagIntoEntity
|
||||
tile.writeToNBT(tag); // readTagIntoEntity
|
||||
return (CompoundTag) methodToNative.invoke(null, tag);
|
||||
} catch (Exception e) {
|
||||
MainUtil.handleError(e);
|
||||
|
|
Loading…
Reference in New Issue