Skip to content

Commit

Permalink
Rename var
Browse files Browse the repository at this point in the history
  • Loading branch information
lynxplay committed Jul 19, 2024
1 parent dc5fac9 commit 75a1f40
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions patches/server/1042-Add-CrafterCraftEvent.patch
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,25 @@ the patch calls the preemtively pulled CrafterCraftEvent.

See: https://hub.spigotmc.org/stash/projects/SPIGOT/repos/craftbukkit/pull-requests/1450/overview

diff --git a/src/main/java/net/minecraft/world/item/crafting/CustomRecipe.java b/src/main/java/net/minecraft/world/item/crafting/CustomRecipe.java
index 50aefbaf4da7f9c6b158c67a6eecfa7b1fabf3cb..69a7e500c725e9da950df30f2cc4ff5f72e527d0 100644
--- a/src/main/java/net/minecraft/world/item/crafting/CustomRecipe.java
+++ b/src/main/java/net/minecraft/world/item/crafting/CustomRecipe.java
@@ -35,10 +35,10 @@ public abstract class CustomRecipe implements CraftingRecipe {
@Override
public Recipe toBukkitRecipe(NamespacedKey id) {
// Paper - make CraftComplexRecipe extend CraftingRecipe - start
- final org.bukkit.craftbukkit.inventory.CraftComplexRecipe inventory = new org.bukkit.craftbukkit.inventory.CraftComplexRecipe(id, this);
- inventory.setGroup(this.getGroup());
- inventory.setCategory(org.bukkit.craftbukkit.inventory.CraftRecipe.getCategory(this.category()));
- return inventory;
+ final org.bukkit.craftbukkit.inventory.CraftComplexRecipe recipe = new org.bukkit.craftbukkit.inventory.CraftComplexRecipe(id, this);
+ recipe.setGroup(this.getGroup());
+ recipe.setCategory(org.bukkit.craftbukkit.inventory.CraftRecipe.getCategory(this.category()));
+ return recipe;
// Paper - make CraftComplexRecipe extend CraftingRecipe - end
}
// CraftBukkit end
diff --git a/src/main/java/net/minecraft/world/level/block/CrafterBlock.java b/src/main/java/net/minecraft/world/level/block/CrafterBlock.java
index 6c24b25a7c8ce6e34aceb5702f1a0a6732ebca44..391a6af36d4c27a04000b31583297a25b89125d3 100644
--- a/src/main/java/net/minecraft/world/level/block/CrafterBlock.java
Expand Down

0 comments on commit 75a1f40

Please sign in to comment.