mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-12-22 14:59:22 +01:00
actually make the dispenser use aura lol
This commit is contained in:
parent
19a9e2e4eb
commit
8d075e1dfb
1 changed files with 6 additions and 1 deletions
|
@ -46,7 +46,12 @@ public class ItemAuraBottle extends ItemImpl implements IColorProvidingItem {
|
|||
|
||||
ItemStack dispense = stack.splitStack(1);
|
||||
if (offsetState.getBlock().isAir(offsetState, world, offset)) {
|
||||
dispense = setType(new ItemStack(ItemAuraBottle.this), IAuraType.forWorld(world));
|
||||
if (IAuraChunk.getAuraInArea(world, offset, 30) >= 1000) {
|
||||
dispense = setType(new ItemStack(ItemAuraBottle.this), IAuraType.forWorld(world));
|
||||
|
||||
BlockPos spot = IAuraChunk.getHighestSpot(world, offset, 30, offset);
|
||||
IAuraChunk.getAuraChunk(world, spot).drainAura(spot, 200);
|
||||
}
|
||||
}
|
||||
|
||||
doDispense(world, dispense, 6, facing, BlockDispenser.getDispensePosition(source));
|
||||
|
|
Loading…
Reference in a new issue