From 5b390d20c6ee6c81737bfda4a079916f0b391400 Mon Sep 17 00:00:00 2001 From: dragonruler1000 Date: Thu, 15 May 2025 09:08:38 -0500 Subject: [PATCH] Add client-side status message on block activation This change ensures players receive immediate client-side feedback when a block is activated. The addition improves user experience by providing clearer interaction confirmation. Signed-off-by: dragonruler1000 --- .../java/us/minecraftchest2/hdm_mod/block/custom/Window.java | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/java/us/minecraftchest2/hdm_mod/block/custom/Window.java b/src/main/java/us/minecraftchest2/hdm_mod/block/custom/Window.java index 8c14d56..d775c0c 100644 --- a/src/main/java/us/minecraftchest2/hdm_mod/block/custom/Window.java +++ b/src/main/java/us/minecraftchest2/hdm_mod/block/custom/Window.java @@ -104,6 +104,7 @@ public class Window extends HorizontalBlock { String message = "blockActivated"; ITextComponent msg = new StringTextComponent(message); player.sendMessage(msg, player.getUniqueID()); + player.sendStatusMessage(new StringTextComponent("Client: Block activated!"), true); if (!worldIn.isRemote()) return super.onBlockActivated(state, worldIn, pos, player, handIn, hit); if (player.isCrouching()) return super.onBlockActivated(state, worldIn, pos, player, handIn, hit);