Skip to content

Commit

Permalink
Fix warn
Browse files Browse the repository at this point in the history
  • Loading branch information
Mgazul committed Jan 6, 2024
1 parent a4a1508 commit cd1f5bc
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions patches/minecraft/net/minecraft/loot/LootTable.java.patch
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@
}

for(int j = 0; j < this.field_216128_f.length; ++j) {
@@ -103,22 +_,57 @@
@@ -103,22 +_,56 @@
public void func_216118_a(IInventory p_216118_1_, LootContext p_216118_2_) {
List<ItemStack> list = this.func_216113_a(p_216118_2_);
Random random = p_216118_2_.func_216032_b();
Expand Down Expand Up @@ -110,7 +110,6 @@
+
+ for(ItemStack itemstack : list) {
+ if (list1.isEmpty()) {
+ field_186465_b.warn(i18n.get("loottable.2"));
+ return;
+ }
+
Expand Down

0 comments on commit cd1f5bc

Please sign in to comment.