Optimisation
This commit is contained in:
parent
3e9195b20b
commit
bca0994652
1 changed files with 4 additions and 2 deletions
|
@ -114,7 +114,9 @@ public class PedestalBlock extends BlockBaseNotFull implements BlockEntityProvid
|
||||||
ItemStack itemStack = player.getStackInHand(hand);
|
ItemStack itemStack = player.getStackInHand(hand);
|
||||||
if (itemStack.isEmpty()) return ActionResult.CONSUME;
|
if (itemStack.isEmpty()) return ActionResult.CONSUME;
|
||||||
pedestal.setStack(0, itemStack.split(1));
|
pedestal.setStack(0, itemStack.split(1));
|
||||||
activate(world, pos, player, hand, hit);
|
if (!(this instanceof InfusionPedestal)) {
|
||||||
|
activate(world, pos, player, hit);
|
||||||
|
}
|
||||||
return ActionResult.SUCCESS;
|
return ActionResult.SUCCESS;
|
||||||
} else {
|
} else {
|
||||||
ItemStack itemStack = pedestal.getStack(0);
|
ItemStack itemStack = pedestal.getStack(0);
|
||||||
|
@ -128,7 +130,7 @@ public class PedestalBlock extends BlockBaseNotFull implements BlockEntityProvid
|
||||||
return ActionResult.PASS;
|
return ActionResult.PASS;
|
||||||
}
|
}
|
||||||
|
|
||||||
private void activate(World world, BlockPos pos, PlayerEntity player, Hand hand, BlockHitResult hit) {
|
private void activate(World world, BlockPos pos, PlayerEntity player, BlockHitResult hit) {
|
||||||
Mutable mut = new Mutable();
|
Mutable mut = new Mutable();
|
||||||
Point[] points = InfusionRitual.getMap();
|
Point[] points = InfusionRitual.getMap();
|
||||||
for (Point p: points) {
|
for (Point p: points) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue