mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-12-22 14:59:22 +01:00
made the shooting mark also require the creational catalyst to produce beyond the limit
This commit is contained in:
parent
60846f5a0e
commit
ca93c2f232
2 changed files with 7 additions and 0 deletions
|
@ -52,6 +52,8 @@ public class BlockProjectileGenerator extends BlockContainerImpl implements ITES
|
|||
Integer amount = NaturesAuraAPI.PROJECTILE_GENERATIONS.get(entity.getType());
|
||||
if (amount == null || amount <= 0)
|
||||
return;
|
||||
if (!generator.canGenerateRightNow(35, amount))
|
||||
return;
|
||||
|
||||
BlockPos spot = IAuraChunk.getLowestSpot(entity.world, pos, 35, pos);
|
||||
IAuraChunk.getAuraChunk(entity.world, spot).storeAura(spot, amount);
|
||||
|
|
|
@ -26,4 +26,9 @@ public class TileEntityProjectileGenerator extends TileEntityImpl {
|
|||
this.nextSide = Direction.byHorizontalIndex(compound.getInt("next_side"));
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean wantsLimitRemover() {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue