mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-17 21:33:49 -07:00
Update to Minecraft 1.16.1
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/server/LootEnchantFunction.java
|
||||
+++ b/net/minecraft/server/LootEnchantFunction.java
|
||||
@@ -32,8 +32,13 @@
|
||||
@@ -37,8 +37,13 @@
|
||||
|
||||
if (entity instanceof EntityLiving) {
|
||||
int i = EnchantmentManager.g((EntityLiving) entity);
|
||||
@@ -15,12 +15,12 @@
|
||||
return itemstack;
|
||||
}
|
||||
|
||||
@@ -59,7 +64,7 @@
|
||||
}
|
||||
@@ -62,7 +67,7 @@
|
||||
public b() {}
|
||||
|
||||
public void a(JsonObject jsonobject, LootEnchantFunction lootenchantfunction, JsonSerializationContext jsonserializationcontext) {
|
||||
- super.a(jsonobject, (LootItemFunctionConditional) lootenchantfunction, jsonserializationcontext);
|
||||
+ super.a(jsonobject, lootenchantfunction, jsonserializationcontext); // CraftBukkit - decompile error
|
||||
jsonobject.add("count", jsonserializationcontext.serialize(lootenchantfunction.a));
|
||||
if (lootenchantfunction.b()) {
|
||||
jsonobject.add("limit", jsonserializationcontext.serialize(lootenchantfunction.c));
|
||||
if (lootenchantfunction.c()) {
|
||||
jsonobject.add("limit", jsonserializationcontext.serialize(lootenchantfunction.b));
|
||||
|
Reference in New Issue
Block a user