2021-03-15 23:00:00 +01:00
|
|
|
--- a/net/minecraft/world/item/ItemBoneMeal.java
|
|
|
|
+++ b/net/minecraft/world/item/ItemBoneMeal.java
|
|
|
|
@@ -28,6 +28,12 @@
|
2020-08-27 03:27:13 +02:00
|
|
|
|
|
|
|
@Override
|
|
|
|
public EnumInteractionResult a(ItemActionContext itemactioncontext) {
|
|
|
|
+ // CraftBukkit start - extract bonemeal application logic to separate, static method
|
|
|
|
+ return applyBonemeal(itemactioncontext);
|
|
|
|
+ }
|
|
|
|
+
|
|
|
|
+ public static EnumInteractionResult applyBonemeal(ItemActionContext itemactioncontext) {
|
|
|
|
+ // CraftBukkit end
|
|
|
|
World world = itemactioncontext.getWorld();
|
|
|
|
BlockPosition blockposition = itemactioncontext.getClickPosition();
|
|
|
|
BlockPosition blockposition1 = blockposition.shift(itemactioncontext.getClickedFace());
|