make players glow when broadcasting their location

This commit is contained in:
iceBear67 committed 2024-09-17 12:37:39 +08:00
1 parent f3319d6286
commit 6fdd64a593
1 file changed
+1 -1
@@ -38,7 +38,7 @@ public class ChatSendLocModule extends ServerModule implements MessageDecorator
private static Text generateLocText(ServerPlayerEntity sender) {
if (sender == null) return Text.of(" (invalid position) ");
sender.addStatusEffect(new StatusEffectInstance(StatusEffects.GLOWING));
sender.addStatusEffect(new StatusEffectInstance(StatusEffects.GLOWING, 30));
var x = sender.getBlockPos().getX();
var y = sender.getBlockPos().getY();
var z = sender.getBlockPos().getZ();