mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2025-02-20 06:21:53 +01:00
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) {
|
public CompoundTag getTag(TileEntity tile) {
|
||||||
try {
|
try {
|
||||||
NBTTagCompound tag = new NBTTagCompound();
|
NBTTagCompound tag = new NBTTagCompound();
|
||||||
tile.readFromNBT(tag); // readTagIntoEntity
|
tile.writeToNBT(tag); // readTagIntoEntity
|
||||||
return (CompoundTag) methodToNative.invoke(null, tag);
|
CompoundTag result = (CompoundTag) methodToNative.invoke(null, tag);
|
||||||
|
return result;
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
MainUtil.handleError(e);
|
MainUtil.handleError(e);
|
||||||
return null;
|
return null;
|
||||||
|
@ -82,7 +82,7 @@ public class ForgeQueue_All extends NMSMappedFaweQueue<World, Chunk, ExtendedBlo
|
|||||||
public CompoundTag getTag(TileEntity tile) {
|
public CompoundTag getTag(TileEntity tile) {
|
||||||
try {
|
try {
|
||||||
NBTTagCompound tag = new NBTTagCompound();
|
NBTTagCompound tag = new NBTTagCompound();
|
||||||
tile.readFromNBT(tag); // readTagIntoEntity
|
tile.writeToNBT(tag); // readTagIntoEntity
|
||||||
return (CompoundTag) methodToNative.invoke(null, tag);
|
return (CompoundTag) methodToNative.invoke(null, tag);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
MainUtil.handleError(e);
|
MainUtil.handleError(e);
|
||||||
|
@ -82,7 +82,7 @@ public class ForgeQueue_All extends NMSMappedFaweQueue<World, Chunk, ExtendedBlo
|
|||||||
public CompoundTag getTag(TileEntity tile) {
|
public CompoundTag getTag(TileEntity tile) {
|
||||||
try {
|
try {
|
||||||
NBTTagCompound tag = new NBTTagCompound();
|
NBTTagCompound tag = new NBTTagCompound();
|
||||||
tile.readFromNBT(tag); // readTagIntoEntity
|
tile.writeToNBT(tag); // readTagIntoEntity
|
||||||
return (CompoundTag) methodToNative.invoke(null, tag);
|
return (CompoundTag) methodToNative.invoke(null, tag);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
MainUtil.handleError(e);
|
MainUtil.handleError(e);
|
||||||
|
@ -89,7 +89,7 @@ public class ForgeQueue_All extends NMSMappedFaweQueue<World, Chunk, ExtendedBlo
|
|||||||
public CompoundTag getTag(TileEntity tile) {
|
public CompoundTag getTag(TileEntity tile) {
|
||||||
try {
|
try {
|
||||||
NBTTagCompound tag = new NBTTagCompound();
|
NBTTagCompound tag = new NBTTagCompound();
|
||||||
tile.readFromNBT(tag); // readTagIntoEntity
|
tile.writeToNBT(tag); // readTagIntoEntity
|
||||||
return (CompoundTag) methodToNative.invoke(null, tag);
|
return (CompoundTag) methodToNative.invoke(null, tag);
|
||||||
} catch (Exception e) {
|
} catch (Exception e) {
|
||||||
MainUtil.handleError(e);
|
MainUtil.handleError(e);
|
||||||
|
Loading…
Reference in New Issue
Block a user