increase the aura detector's and furnace heater's range

This commit is contained in:
Ellpeck 2018-11-26 00:31:58 +01:00
parent 69e07e25a5
commit c4afd8b229
2 changed files with 2 additions and 2 deletions

View file

@ -11,7 +11,7 @@ public class TileEntityAuraDetector extends TileEntityImpl implements ITickable
@Override @Override
public void update() { public void update() {
if (!this.world.isRemote && this.world.getTotalWorldTime() % 80 == 0) { 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); int power = MathHelper.clamp(MathHelper.ceil(amount / (IAuraChunk.DEFAULT_AURA * 2F) * 15F), 0, 15);
if (this.redstonePower != power) { if (this.redstonePower != power) {
this.redstonePower = power; this.redstonePower = power;

View file

@ -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 == //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)); 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); IAuraChunk chunk = IAuraChunk.getAuraChunk(this.world, spot);
chunk.drainAura(spot, MathHelper.ceil((200 - time) / 4F)); chunk.drainAura(spot, MathHelper.ceil((200 - time) / 4F));
did = true; did = true;