mirror of
https://github.com/barkeser2002/CatServer.git
synced 2026-09-25 07:19:56 +03:00
25 lines
1.2 KiB
Diff
25 lines
1.2 KiB
Diff
--- ../src-base/minecraft/net/minecraft/world/storage/loot/LootEntryTable.java
|
|
+++ ../src-work/minecraft/net/minecraft/world/storage/loot/LootEntryTable.java
|
|
@@ -14,9 +14,9 @@
|
|
{
|
|
protected final ResourceLocation table;
|
|
|
|
- public LootEntryTable(ResourceLocation tableIn, int weightIn, int qualityIn, LootCondition[] conditionsIn)
|
|
+ public LootEntryTable(ResourceLocation tableIn, int weightIn, int qualityIn, LootCondition[] conditionsIn, String entryName)
|
|
{
|
|
- super(weightIn, qualityIn, conditionsIn);
|
|
+ super(weightIn, qualityIn, conditionsIn, entryName);
|
|
this.table = tableIn;
|
|
}
|
|
|
|
@@ -34,7 +34,8 @@
|
|
|
|
public static LootEntryTable deserialize(JsonObject object, JsonDeserializationContext deserializationContext, int weightIn, int qualityIn, LootCondition[] conditionsIn)
|
|
{
|
|
+ String name = net.minecraftforge.common.ForgeHooks.readLootEntryName(object, "loot_table");
|
|
ResourceLocation resourcelocation = new ResourceLocation(JsonUtils.getString(object, "name"));
|
|
- return new LootEntryTable(resourcelocation, weightIn, qualityIn, conditionsIn);
|
|
+ return new LootEntryTable(resourcelocation, weightIn, qualityIn, conditionsIn, name);
|
|
}
|
|
}
|