mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Fix typo in LootEntry.Serialiser causing incorrect serialisation. Closes #2757, Fixes MC-115407 (#3823)
This commit is contained in:
1 parent
5f4cd69167
commit
f92425cf71
1 file changed
+9
-1
@@ -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
|
||||
{
|
||||
Reference in new issue
Block a user