Skip to content

Commit

Permalink
移除Debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Gu-ZT committed Mar 5, 2024
1 parent 3547160 commit 9a16e75
Showing 1 changed file with 0 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<ItemAnvilRecipe> optional = server.getRecipeManager().getRecipeFor(ModRecipeTypes.ANVIL_ITEM, container, level);
if (optional.isEmpty()) return;
ItemAnvilRecipe recipe = optional.get();
Expand Down

0 comments on commit 9a16e75

Please sign in to comment.