made the shooting mark also require the creational catalyst to produce beyond the limit

This commit is contained in:
Ellpeck 2020-01-27 00:11:16 +01:00
parent 60846f5a0e
commit ca93c2f232
2 changed files with 7 additions and 0 deletions

View file

@ -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);

View file

@ -26,4 +26,9 @@ public class TileEntityProjectileGenerator extends TileEntityImpl {
this.nextSide = Direction.byHorizontalIndex(compound.getInt("next_side"));
}
}
@Override
public boolean wantsLimitRemover() {
return true;
}
}