mirror of
https://github.com/dragonruler1000/hdm-mod.git
synced 2025-06-29 08:29:33 -05:00
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 <github@me.minecraftchest2.us>
This commit is contained in:
parent
670cd542c9
commit
5b390d20c6
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue