CraftBlock - fix applyBoneMeal false result (#12407)

This commit is contained in:
Shane Bee 2025-04-11 14:38:33 -07:00 committed by GitHub
parent 0cf731589a
commit 0767902699
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

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