From 9a505753b0c7c670f1b1a684596c450700626dcc Mon Sep 17 00:00:00 2001 From: Anuken Date: Fri, 15 Jul 2022 16:26:48 -0400 Subject: [PATCH] Fixed block break particles not showing --- core/src/mindustry/world/blocks/ConstructBlock.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/mindustry/world/blocks/ConstructBlock.java b/core/src/mindustry/world/blocks/ConstructBlock.java index a7694eb6a3..26f921660c 100644 --- a/core/src/mindustry/world/blocks/ConstructBlock.java +++ b/core/src/mindustry/world/blocks/ConstructBlock.java @@ -8,6 +8,7 @@ import arc.math.*; import arc.struct.*; import arc.util.*; import arc.util.io.*; +import mindustry.*; import mindustry.annotations.Annotations.*; import mindustry.content.*; import mindustry.entities.*; @@ -56,7 +57,7 @@ public class ConstructBlock extends Block{ @Remote(called = Loc.server) public static void deconstructFinish(Tile tile, Block block, Unit builder){ Team team = tile.team(); - if(fogControl.isVisibleTile(team, tile.x, tile.y)){ + if(!headless && fogControl.isVisibleTile(Vars.player.team(), tile.x, tile.y)){ block.breakEffect.at(tile.drawx(), tile.drawy(), block.size, block.mapColor); if(shouldPlay()) block.breakSound.at(tile, block.breakPitchChange ? calcPitch(false) : 1f); }