fix compile issues

This commit is contained in:
Spottedleaf
2024-10-25 12:47:52 -07:00
parent 9adbb0e5c1
commit 97d6e76ee5
4 changed files with 2 additions and 19 deletions

View File

@@ -32,9 +32,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
@Override
public void remove() {
+ // Paper start - fix removing recipes from RecipeIterator
+ if (this.currentRecipe instanceof org.bukkit.Keyed keyed) {
+ MinecraftServer.getServer().getRecipeManager().byName.remove(org.bukkit.craftbukkit.util.CraftNamespacedKey.toMinecraft(keyed.getKey()));
+ }
+ if (true) throw new UnsupportedOperationException();
+ // Paper end - fix removing recipes from RecipeIterator
this.recipes.remove();
}