From c4afd8b229637890ac1587dbd5a54db8dde4976e Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Mon, 26 Nov 2018 00:31:58 +0100 Subject: [PATCH] increase the aura detector's and furnace heater's range --- .../naturesaura/blocks/tiles/TileEntityAuraDetector.java | 2 +- .../naturesaura/blocks/tiles/TileEntityFurnaceHeater.java | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityAuraDetector.java b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityAuraDetector.java index 6eb122b9..7206b520 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityAuraDetector.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityAuraDetector.java @@ -11,7 +11,7 @@ public class TileEntityAuraDetector extends TileEntityImpl implements ITickable @Override public void update() { if (!this.world.isRemote && this.world.getTotalWorldTime() % 80 == 0) { - int amount = IAuraChunk.getAuraInArea(this.world, this.pos, 8); + int amount = IAuraChunk.getAuraInArea(this.world, this.pos, 30); int power = MathHelper.clamp(MathHelper.ceil(amount / (IAuraChunk.DEFAULT_AURA * 2F) * 15F), 0, 15); if (this.redstonePower != power) { this.redstonePower = power; diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityFurnaceHeater.java b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityFurnaceHeater.java index 9416ad88..c67e9df8 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityFurnaceHeater.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/TileEntityFurnaceHeater.java @@ -39,7 +39,7 @@ public class TileEntityFurnaceHeater extends TileEntityImpl implements ITickable //if set higher than 199, it'll never finish because the furnace does ++ and then == furnace.setField(2, Math.min(199, furnace.getField(2) + 5)); - BlockPos spot = IAuraChunk.getHighestSpot(this.world, this.pos, 15, this.pos); + BlockPos spot = IAuraChunk.getHighestSpot(this.world, this.pos, 20, this.pos); IAuraChunk chunk = IAuraChunk.getAuraChunk(this.world, spot); chunk.drainAura(spot, MathHelper.ceil((200 - time) / 4F)); did = true;