mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-12-22 14:59:22 +01:00
increase the aura detector's and furnace heater's range
This commit is contained in:
parent
69e07e25a5
commit
c4afd8b229
2 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue