From 9a16e75e29e0ffbedfd3198b0ceafde1eed38e05 Mon Sep 17 00:00:00 2001 From: Gugle Date: Wed, 6 Mar 2024 01:58:30 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4Debug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../dubhe/anvilcraft/event/listener/AnvilEventListener.java | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/main/java/dev/dubhe/anvilcraft/event/listener/AnvilEventListener.java b/src/main/java/dev/dubhe/anvilcraft/event/listener/AnvilEventListener.java index 033bd2a30..558819299 100644 --- a/src/main/java/dev/dubhe/anvilcraft/event/listener/AnvilEventListener.java +++ b/src/main/java/dev/dubhe/anvilcraft/event/listener/AnvilEventListener.java @@ -19,9 +19,6 @@ public void onLand(@NotNull AnvilFallOnLandEvent event) { ItemAnvilCraftingContainer container = new ItemAnvilCraftingContainer(level, event.getPos(), event.getEntity()); MinecraftServer server = level.getServer(); if (null == server) return; - for (Recipe recipe : server.getRecipeManager().getRecipes().stream().filter(recipe -> recipe instanceof ItemAnvilRecipe).toList()) { - System.out.println(recipe); - } Optional optional = server.getRecipeManager().getRecipeFor(ModRecipeTypes.ANVIL_ITEM, container, level); if (optional.isEmpty()) return; ItemAnvilRecipe recipe = optional.get();