diff --git a/patches/net/minecraft/entity/DataWatcher.java.patch b/patches/net/minecraft/entity/DataWatcher.java.patch index b21887f6..1773cc1e 100644 --- a/patches/net/minecraft/entity/DataWatcher.java.patch +++ b/patches/net/minecraft/entity/DataWatcher.java.patch @@ -122,7 +122,7 @@ - switch (p_151510_1_.getObjectType()) + int type = p_151510_1_.getObjectType(); + Object object = p_151510_1_.getObject(); -+ int rt = 0; ++ int rt = -1; + if(object instanceof Byte) rt = 0; + else if(object instanceof Short) rt = 1; + else if(object instanceof Integer) rt = 2; @@ -130,9 +130,9 @@ + else if(object instanceof String) rt = 4; + else if(object instanceof ItemStack) rt = 5; + else if(object instanceof ChunkCoordinates) rt = 6; -+ if(type != rt) ++ if(rt != -1 && type != rt) + { -+ System.out.println("[Thermos] Watchable object type is incorrect! Appying correct type!"); ++ System.out.println("[Thermos] Watchable object type "+type+" is incorrect! Appying correct type of " +rt+ "!"); + type = rt; + } + switch (type) diff --git a/patches/net/minecraft/inventory/Container.java.patch b/patches/net/minecraft/inventory/Container.java.patch index ac5e8a07..75772917 100644 --- a/patches/net/minecraft/inventory/Container.java.patch +++ b/patches/net/minecraft/inventory/Container.java.patch @@ -230,4 +230,3 @@ + } + // Spigot } -