mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 02:07:37 +01:00
8a3c8cfcd4
By: md_5 <git@md-5.net>
16 lines
715 B
Diff
16 lines
715 B
Diff
--- a/net/minecraft/world/item/ItemBoneMeal.java
|
|
+++ b/net/minecraft/world/item/ItemBoneMeal.java
|
|
@@ -34,6 +34,12 @@
|
|
|
|
@Override
|
|
public EnumInteractionResult useOn(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.getLevel();
|
|
BlockPosition blockposition = itemactioncontext.getClickedPos();
|
|
BlockPosition blockposition1 = blockposition.relative(itemactioncontext.getClickedFace());
|