From 80918ea7e4f201f3dc190f928353b38f11fc4b99 Mon Sep 17 00:00:00 2001 From: paulevsGitch Date: Thu, 8 Jul 2021 00:31:18 +0300 Subject: [PATCH] Vent smoke fixes --- .../java/ru/betterend/blocks/HydrothermalVentBlock.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main/java/ru/betterend/blocks/HydrothermalVentBlock.java b/src/main/java/ru/betterend/blocks/HydrothermalVentBlock.java index 0eb88aea..583579f0 100644 --- a/src/main/java/ru/betterend/blocks/HydrothermalVentBlock.java +++ b/src/main/java/ru/betterend/blocks/HydrothermalVentBlock.java @@ -129,16 +129,16 @@ public class HydrothermalVentBlock extends BaseBlockNotFull implements EntityBlo @Environment(EnvType.CLIENT) public void animateTick(BlockState state, Level world, BlockPos pos, Random random) { - if (!state.getValue(ACTIVATED) && random.nextBoolean()) { - super.animateTick(state, world, pos, random); + super.animateTick(state, world, pos, random); + if (random.nextBoolean()) { double x = pos.getX() + random.nextDouble(); double y = pos.getY() + 0.9 + random.nextDouble() * 0.3; double z = pos.getZ() + random.nextDouble(); - if (state.getValue(WATERLOGGED)) { + if (state.getValue(ACTIVATED)) { world.addParticle(EndParticles.GEYSER_PARTICLE, x, y, z, 0, 0, 0); } else { - world.addParticle(ParticleTypes.SMOKE, x, y, z, 0, 0, 0); + world.addParticle(ParticleTypes.LARGE_SMOKE, x, y, z, 0, 0, 0); } } }