From f92425cf71848bd4d3fbfb8683b4c4681f6093c8 Mon Sep 17 00:00:00 2001 From: Daomephsta Date: Sat, 8 Apr 2017 12:09:56 +1200 Subject: [PATCH] Fix typo in LootEntry.Serialiser causing incorrect serialisation. Closes #2757, Fixes MC-115407 (#3823) --- .../minecraft/world/storage/loot/LootEntry.java.patch | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/patches/minecraft/net/minecraft/world/storage/loot/LootEntry.java.patch b/patches/minecraft/net/minecraft/world/storage/loot/LootEntry.java.patch index 5bd7392dc3..cc2efb1f14 100644 --- a/patches/minecraft/net/minecraft/world/storage/loot/LootEntry.java.patch +++ b/patches/minecraft/net/minecraft/world/storage/loot/LootEntry.java.patch @@ -47,7 +47,7 @@ jsonobject.addProperty("weight", (Number)Integer.valueOf(p_serialize_1_.field_186364_c)); jsonobject.addProperty("quality", (Number)Integer.valueOf(p_serialize_1_.field_186365_d)); -@@ -86,6 +95,9 @@ +@@ -86,13 +95,16 @@ jsonobject.add("conditions", p_serialize_3_.serialize(p_serialize_1_.field_186366_e)); } @@ -57,3 +57,11 @@ if (p_serialize_1_ instanceof LootEntryItem) { jsonobject.addProperty("type", "item"); + } + else if (p_serialize_1_ instanceof LootEntryTable) + { +- jsonobject.addProperty("type", "item"); ++ jsonobject.addProperty("type", "loot_table"); //Forge: fix incorrect serialization MC-115407 + } + else + {