Upstream update

This commit is contained in:
Bjarne Koll
2024-10-24 19:29:35 +02:00
parent e7c58ce74f
commit ff6f80cbff
13 changed files with 16 additions and 16 deletions

View File

@@ -24,5 +24,5 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
- return this.getHelmet();
+ return java.util.Objects.requireNonNullElseGet(this.getHelmet(), () -> new ItemStack(org.bukkit.Material.AIR)); // Paper - make nonnull
default:
throw new IllegalArgumentException("Not implemented. This is a bug");
throw new IllegalArgumentException("Could not get slot " + slot + " - not a valid slot for PlayerInventory");
}