From ca93c2f23222f8e73a9150e131ca03b451526136 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 27 Jan 2020 00:11:16 +0100 Subject: [PATCH] made the shooting mark also require the creational catalyst to produce beyond the limit --- .../ellpeck/naturesaura/blocks/BlockProjectileGenerator.java | 2 ++ .../blocks/tiles/TileEntityProjectileGenerator.java | 5 +++++ 2 files changed, 7 insertions(+) diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/BlockProjectileGenerator.java b/src/main/java/de/ellpeck/naturesaura/blocks/BlockProjectileGenerator.java index 3e301b3a..16dd0b02 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/BlockProjectileGenerator.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/BlockProjectileGenerator.java @@ -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); diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityProjectileGenerator.java b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityProjectileGenerator.java index e302916b..12a5a71f 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityProjectileGenerator.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityProjectileGenerator.java @@ -26,4 +26,9 @@ public class TileEntityProjectileGenerator extends TileEntityImpl { this.nextSide = Direction.byHorizontalIndex(compound.getInt("next_side")); } } + + @Override + public boolean wantsLimitRemover() { + return true; + } }