Skip to content

Commit

Permalink
Fix lunar water post-conversion level
Browse files Browse the repository at this point in the history
  • Loading branch information
democat3457 committed Jul 14, 2022
1 parent 4807de2 commit 4cfd892
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main/java/de/ellpeck/nyx/entities/CauldronTracker.java
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down Expand Up @@ -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;
}
}
}
Expand Down

0 comments on commit 4cfd892

Please sign in to comment.