Files
CatServer/patches/net/minecraft/world/storage/loot/LootEntryEmpty.java.patch
2019-02-24 22:29:41 +08:00

23 lines
1.0 KiB
Diff

--- ../src-base/minecraft/net/minecraft/world/storage/loot/LootEntryEmpty.java
+++ ../src-work/minecraft/net/minecraft/world/storage/loot/LootEntryEmpty.java
@@ -10,9 +10,9 @@
public class LootEntryEmpty extends LootEntry
{
- public LootEntryEmpty(int weightIn, int qualityIn, LootCondition[] conditionsIn)
+ public LootEntryEmpty(int weightIn, int qualityIn, LootCondition[] conditionsIn, String entryName)
{
- super(weightIn, qualityIn, conditionsIn);
+ super(weightIn, qualityIn, conditionsIn, entryName);
}
public void addLoot(Collection<ItemStack> stacks, Random rand, LootContext context)
@@ -25,6 +25,6 @@
public static LootEntryEmpty deserialize(JsonObject object, JsonDeserializationContext deserializationContext, int weightIn, int qualityIn, LootCondition[] conditionsIn)
{
- return new LootEntryEmpty(weightIn, qualityIn, conditionsIn);
+ return new LootEntryEmpty(weightIn, qualityIn, conditionsIn, net.minecraftforge.common.ForgeHooks.readLootEntryName(object, "empty"));
}
}