@@ -1,6 +1,6 @@
|
||||
--- a/net/minecraft/world/item/ItemBoneMeal.java
|
||||
+++ b/net/minecraft/world/item/ItemBoneMeal.java
|
||||
@@ -34,13 +34,19 @@
|
||||
@@ -35,13 +35,19 @@
|
||||
|
||||
@Override
|
||||
public EnumInteractionResult useOn(ItemActionContext itemactioncontext) {
|
||||
@@ -18,15 +18,15 @@
|
||||
if (!world.isClientSide) {
|
||||
- itemactioncontext.getPlayer().gameEvent(GameEvent.ITEM_INTERACT_FINISH);
|
||||
+ if (itemactioncontext.getPlayer() != null) itemactioncontext.getPlayer().gameEvent(GameEvent.ITEM_INTERACT_FINISH); // CraftBukkit - SPIGOT-7518
|
||||
world.levelEvent(1505, blockposition, 0);
|
||||
world.levelEvent(1505, blockposition, 15);
|
||||
}
|
||||
|
||||
@@ -51,7 +57,7 @@
|
||||
@@ -52,7 +58,7 @@
|
||||
|
||||
if (flag && growWaterPlant(itemactioncontext.getItemInHand(), world, blockposition1, itemactioncontext.getClickedFace())) {
|
||||
if (!world.isClientSide) {
|
||||
- itemactioncontext.getPlayer().gameEvent(GameEvent.ITEM_INTERACT_FINISH);
|
||||
+ if (itemactioncontext.getPlayer() != null) itemactioncontext.getPlayer().gameEvent(GameEvent.ITEM_INTERACT_FINISH); // CraftBukkit - SPIGOT-7518
|
||||
world.levelEvent(1505, blockposition1, 0);
|
||||
world.levelEvent(1505, blockposition1, 15);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user