Activation function

This commit is contained in:
paulevsGitch 2021-01-22 22:35:11 +03:00
parent c9aacbff2b
commit 3e9195b20b
7 changed files with 38 additions and 4 deletions

View file

@ -43,7 +43,10 @@ public class InfusionPedestal extends PedestalBlock {
}
}
}
ActionResult result = super.onUse(state, world, pos, player, hand, hit);
ActionResult result = ActionResult.FAIL;
if (hand != null) {
result = super.onUse(state, world, pos, player, hand, hit);
}
if (result == ActionResult.SUCCESS) {
if (pedestal != null) {
if (pedestal.hasRitual()) {