Fix typo in LootEntry.Serialiser causing incorrect serialisation. Closes #2757, Fixes MC-115407 (#3823)

This commit is contained in:
Daomephsta 2017-04-08 12:09:56 +12:00 committed by LexManos
parent 5f4cd69167
commit f92425cf71

View file

@ -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
{