Activation function
This commit is contained in:
parent
c9aacbff2b
commit
3e9195b20b
7 changed files with 38 additions and 4 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue