make sign set displayname of claimer
Some checks failed
/ Auto-Build-App (push) Failing after 5m33s

This commit is contained in:
pietru 2025-05-10 21:58:46 +02:00
parent 53db2009fc
commit 2f3e613548

View file

@ -7,6 +7,7 @@ import finalforeach.cosmicreach.blockentities.BlockEntity;
import finalforeach.cosmicreach.blockentities.BlockEntitySign;
import finalforeach.cosmicreach.entities.player.Player;
import finalforeach.cosmicreach.networking.packets.MessagePacket;
import finalforeach.cosmicreach.networking.packets.blockentities.BlockEntityDataPacket;
import finalforeach.cosmicreach.networking.server.ServerSingletons;
import finalforeach.cosmicreach.world.Zone;
import net.pietru.cookie_utils.api.Area;
@ -91,6 +92,7 @@ public class BlockEntitySignMixin {
texts[2] = player.getAccount().getDisplayName();
textureDirty = true;
ServerSingletons.SERVER.broadcast(zone, new BlockEntityDataPacket(be));
} else {
MessagePacket packet = new MessagePacket("[Server] Area of size "+size+" intersects another protected area...");
packet.setupAndSend(ServerSingletons.getConnection(player));