1
0
Fork 0
mirror of https://github.com/PaperMC/Paper.git synced 2025-02-19 11:39:50 +01:00

Fix return value of Block#applyBoneMeal always being false

This commit is contained in:
Jason Penilla 2021-06-28 18:16:52 -07:00
parent df822c00c9
commit 4919926f51

View file

@ -558,7 +558,7 @@ public class CraftBlock implements Block {
} }
} }
return result == InteractionResult.SUCCESS && (event == null || !event.isCancelled()); return result == InteractionResult.CONSUME && (event == null || !event.isCancelled()); // Paper - CONSUME is returned on success server-side (see BoneMealItem.applyBoneMeal and InteractionResult.sidedSuccess(boolean))
} }
@Override @Override