@@ -1,23 +1,23 @@
|
||||
--- a/net/minecraft/server/RecipeBookServer.java
|
||||
+++ b/net/minecraft/server/RecipeBookServer.java
|
||||
@@ -7,6 +7,7 @@
|
||||
import java.util.List;
|
||||
@@ -8,6 +8,7 @@
|
||||
import java.util.Optional;
|
||||
import org.apache.logging.log4j.LogManager;
|
||||
import org.apache.logging.log4j.Logger;
|
||||
+import org.bukkit.craftbukkit.event.CraftEventFactory; // CraftBukkit
|
||||
|
||||
public class RecipeBookServer extends RecipeBook {
|
||||
|
||||
@@ -26,7 +27,7 @@
|
||||
IRecipe irecipe = (IRecipe) iterator.next();
|
||||
@@ -27,7 +28,7 @@
|
||||
IRecipe<?> irecipe = (IRecipe) iterator.next();
|
||||
MinecraftKey minecraftkey = irecipe.getKey();
|
||||
|
||||
- if (!this.a.contains(minecraftkey) && !irecipe.c()) {
|
||||
+ if (!this.a.contains(minecraftkey) && !irecipe.c() && CraftEventFactory.handlePlayerRecipeListUpdateEvent(entityplayer, minecraftkey)) { // CraftBukkit
|
||||
- if (!this.a.contains(minecraftkey) && !irecipe.isComplex()) {
|
||||
+ if (!this.a.contains(minecraftkey) && !irecipe.isComplex() && CraftEventFactory.handlePlayerRecipeListUpdateEvent(entityplayer, minecraftkey)) { // CraftBukkit
|
||||
this.a(minecraftkey);
|
||||
this.c(minecraftkey);
|
||||
list.add(minecraftkey);
|
||||
@@ -60,6 +61,7 @@
|
||||
@@ -61,6 +62,7 @@
|
||||
}
|
||||
|
||||
private void a(PacketPlayOutRecipes.Action packetplayoutrecipes_action, EntityPlayer entityplayer, List<MinecraftKey> list) {
|
||||
|
||||
Reference in New Issue
Block a user