mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 10:46:05 +03:00
23 lines
1.0 KiB
Diff
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"));
|
|
}
|
|
}
|