From 4cfd892c310534224e179d3c8cbb2c63fb6b5fe4 Mon Sep 17 00:00:00 2001 From: Colin Wong Date: Thu, 14 Jul 2022 00:19:39 -0500 Subject: [PATCH] Fix lunar water post-conversion level --- src/main/java/de/ellpeck/nyx/entities/CauldronTracker.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/de/ellpeck/nyx/entities/CauldronTracker.java b/src/main/java/de/ellpeck/nyx/entities/CauldronTracker.java index 24a49a3..b09fc74 100755 --- a/src/main/java/de/ellpeck/nyx/entities/CauldronTracker.java +++ b/src/main/java/de/ellpeck/nyx/entities/CauldronTracker.java @@ -70,7 +70,7 @@ public void onEntityUpdate() { return; } - int level = state.getValue(BlockCauldron.LEVEL); + int level = Nyx.cauldronProxy.getLevel(this.world, this.trackingPos); if (level <= 0) { if (this.timer > 0) { this.dataManager.set(IS_DONE, false); @@ -147,6 +147,7 @@ public void onEntityUpdate() { Nyx.cauldronProxy.setLunarWaterCauldron(this.world, this.trackingPos, level); this.world.playSound(null, this.posX, this.posY, this.posZ, Registry.lunarWaterSound, SoundCategory.BLOCKS, 1, 1); this.setDead(); + break; } } }