Handle tile entity lookup in 1.20.5

This commit is contained in:
Michael Primm 2024-04-28 14:01:07 -05:00
parent 6fc8090f70
commit 38c9281c7a
18 changed files with 39 additions and 38 deletions

View file

@ -362,9 +362,11 @@ public class BukkitVersionHelperSpigot120_5 extends BukkitVersionHelper {
}
@Override
public Object readTileEntityNBT(Object te) {
public Object readTileEntityNBT(Object te, org.bukkit.World w) {
TileEntity tileent = (TileEntity) te;
NBTTagCompound nbt = new NBTTagCompound(); //TODO tileent.o();
CraftWorld cw = (CraftWorld) w;
//NBTTagCompound nbt = tileent.o(world.registrtAccess());
NBTTagCompound nbt = tileent.e(cw.getHandle().H_());
return nbt;
}