From d3023d966172390ef5192229672fe4a7f9992330 Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Thu, 15 Sep 2022 14:15:18 +0200 Subject: [PATCH] made weather changer item amount actually use a little less aura to be worthwhile --- .../naturesaura/blocks/tiles/BlockEntityWeatherChanger.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/BlockEntityWeatherChanger.java b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/BlockEntityWeatherChanger.java index dc3e348c..52ec5c64 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/tiles/BlockEntityWeatherChanger.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/tiles/BlockEntityWeatherChanger.java @@ -7,6 +7,7 @@ import de.ellpeck.naturesaura.api.misc.WeatherType; import net.minecraft.core.BlockPos; import net.minecraft.nbt.CompoundTag; import net.minecraft.server.level.ServerLevel; +import net.minecraft.util.Mth; import net.minecraft.world.entity.Entity; import net.minecraft.world.entity.item.ItemEntity; import net.minecraft.world.item.ItemStack; @@ -52,7 +53,7 @@ public class BlockEntityWeatherChanger extends BlockEntityImpl implements ITicka if (this.processTime > 0) { if (this.processTime % 20 == 0) { var spot = IAuraChunk.getHighestSpot(this.level, this.worldPosition, 35, this.worldPosition); - IAuraChunk.getAuraChunk(this.level, spot).drainAura(spot, 30000 * this.itemAmount); + IAuraChunk.getAuraChunk(this.level, spot).drainAura(spot, 30000 * Mth.ceil(this.itemAmount * 0.75F)); } this.processTime--;