From 13455380c13c6f44238e6fb2510da9b08606e8ae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Robin=20B=C3=A4rtschi?= Date: Wed, 26 Jun 2024 11:04:52 +0200 Subject: [PATCH] don't return so much Env into the chunk --- .../level/block/entity/EnvDistributorBlockEntity.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/robaertschi/environmenttech/level/block/entity/EnvDistributorBlockEntity.java b/src/main/java/robaertschi/environmenttech/level/block/entity/EnvDistributorBlockEntity.java index 2020f1c..e229f08 100644 --- a/src/main/java/robaertschi/environmenttech/level/block/entity/EnvDistributorBlockEntity.java +++ b/src/main/java/robaertschi/environmenttech/level/block/entity/EnvDistributorBlockEntity.java @@ -56,7 +56,7 @@ public class EnvDistributorBlockEntity extends BlockEntity implements ITickableB public void serverTick(ServerLevel level, BlockPos blockPos, BlockState blockState) { if (envStorage.getEnvStored() > 0) { ChunkAccess chunk = level.getChunk(blockPos); - long value = Math.min(20, envStorage.getEnvStored()); + long value = Math.min(5, envStorage.getEnvStored()); chunk.setData(ETAttachments.ENV, chunk.getData(ETAttachments.ENV) + value); envStorage.setEnvStored(envStorage.getEnvStored() - value); }