From e17331442860e2dda230faf24e524464049700d3 Mon Sep 17 00:00:00 2001 From: Tuke-Nuke Date: Fri, 9 Jun 2017 06:15:24 -0300 Subject: [PATCH] NMS changes for 1.12 --- src/me/TheBukor/SkStuff/util/NMS_v1_12_R1.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/me/TheBukor/SkStuff/util/NMS_v1_12_R1.java b/src/me/TheBukor/SkStuff/util/NMS_v1_12_R1.java index e0a70fe..bf95c68 100644 --- a/src/me/TheBukor/SkStuff/util/NMS_v1_12_R1.java +++ b/src/me/TheBukor/SkStuff/util/NMS_v1_12_R1.java @@ -211,7 +211,7 @@ public class NMS_v1_12_R1 implements NMSInterface { @Override public Object getIndex(Object nbtList, int index) { if (nbtList instanceof NBTTagList && index >= 0 && index < ((NBTTagList) nbtList).size()) { - NBTBase value = ((NBTTagList) nbtList).h(index); + NBTBase value = ((NBTTagList) nbtList).i(index); if (value instanceof NBTTagByte) { return ((NBTTagByte) value).g(); //Byte stored inside a NBTNumber } else if (value instanceof NBTTagShort) { @@ -485,7 +485,7 @@ public class NMS_v1_12_R1 implements NMSInterface { public NBTTagCompound getEntityNBT(Entity entity) { net.minecraft.server.v1_12_R1.Entity nmsEntity = ((CraftEntity) entity).getHandle(); NBTTagCompound NBT = new NBTTagCompound(); - nmsEntity.e(NBT); + nmsEntity.save(NBT); return NBT; }