mirror of
https://github.com/Ellpeck/NaturesAura.git
synced 2024-12-22 06:59:22 +01:00
some fixes I missed for the renumbering
This commit is contained in:
parent
4e370dffe7
commit
b6adc13f36
5 changed files with 6 additions and 6 deletions
|
@ -21,7 +21,7 @@ public class TileEntityHopperUpgrade extends TileEntityImpl implements ITickable
|
|||
@Override
|
||||
public void update() {
|
||||
if (!this.world.isRemote && this.world.getTotalWorldTime() % 10 == 0) {
|
||||
if (IAuraChunk.getAuraInArea(this.world, this.pos, 25) < 1000)
|
||||
if (IAuraChunk.getAuraInArea(this.world, this.pos, 25) < 100000)
|
||||
return;
|
||||
TileEntity tile = this.world.getTileEntity(this.pos.down());
|
||||
if (!isValidHopper(tile))
|
||||
|
|
|
@ -71,7 +71,7 @@ public class TileEntityRFConverter extends TileEntityImpl implements ITickable {
|
|||
int aura = IAuraChunk.getAuraInArea(this.world, this.pos, 45);
|
||||
if (aura <= IAuraChunk.DEFAULT_AURA)
|
||||
return;
|
||||
int amountToGen = Math.min(Math.min(1000, aura / 1000), emptyPart);
|
||||
int amountToGen = Math.min(Math.min(10000, aura / 1000), emptyPart);
|
||||
int amountToUse = MathHelper.ceil(amountToGen / ModConfig.general.auraToRFRatio);
|
||||
|
||||
this.storage.setEnergy(this.storage.getEnergyStored() + amountToGen);
|
||||
|
|
|
@ -57,7 +57,7 @@ public class CommonEvents {
|
|||
int aura = IAuraChunk.triangulateAuraInArea(event.player.world, event.player.getPosition(), 25);
|
||||
if (aura <= 0)
|
||||
Helper.addAdvancement(event.player, new ResourceLocation(NaturesAura.MOD_ID, "negative_imbalance"), "triggered_in_code");
|
||||
else if (aura >= 15000)
|
||||
else if (aura >= 1500000)
|
||||
Helper.addAdvancement(event.player, new ResourceLocation(NaturesAura.MOD_ID, "positive_imbalance"), "triggered_in_code");
|
||||
}
|
||||
}
|
||||
|
|
|
@ -45,7 +45,7 @@ public class ItemAuraBottle extends ItemImpl implements IColorProvidingItem {
|
|||
|
||||
ItemStack dispense = stack.splitStack(1);
|
||||
if (offsetState.getBlock().isAir(offsetState, world, offset)) {
|
||||
if (IAuraChunk.getAuraInArea(world, offset, 30) >= 1000) {
|
||||
if (IAuraChunk.getAuraInArea(world, offset, 30) >= 100000) {
|
||||
dispense = setType(new ItemStack(ItemAuraBottle.this), IAuraType.forWorld(world));
|
||||
|
||||
BlockPos spot = IAuraChunk.getHighestSpot(world, offset, 30, offset);
|
||||
|
@ -69,7 +69,7 @@ public class ItemAuraBottle extends ItemImpl implements IColorProvidingItem {
|
|||
if (ray != null && ray.typeOfHit == RayTraceResult.Type.BLOCK)
|
||||
return;
|
||||
BlockPos pos = player.getPosition();
|
||||
if (IAuraChunk.getAuraInArea(player.world, pos, 30) < 1000)
|
||||
if (IAuraChunk.getAuraInArea(player.world, pos, 30) < 100000)
|
||||
return;
|
||||
|
||||
if (!player.world.isRemote) {
|
||||
|
|
|
@ -21,7 +21,7 @@ public class ItemBirthSpirit extends ItemGlowing {
|
|||
if (!parent.world.isRemote && event.getCausedByPlayer() != null) {
|
||||
BlockPos pos = parent.getPosition();
|
||||
int aura = IAuraChunk.getAuraInArea(parent.world, pos, 30);
|
||||
if (aura < 12000)
|
||||
if (aura < 1200000)
|
||||
return;
|
||||
|
||||
int amount = parent.world.rand.nextInt(3) + 1;
|
||||
|
|
Loading…
Reference in a new issue