Pot fix RPlayer

This commit is contained in:
2025-07-31 09:44:28 +02:00
parent 14be3a8e3b
commit 297aa6151d
@@ -35,6 +35,7 @@ import org.bukkit.Location;
import org.bukkit.entity.EntityType;
import org.bukkit.inventory.ItemStack;
import java.nio.charset.StandardCharsets;
import java.util.Map;
import java.util.UUID;
import java.util.function.Consumer;
@@ -70,7 +71,7 @@ public class RPlayer extends REntity {
private final String name;
public RPlayer(REntityServer server, UUID uuid, String name, Location location) {
super(server, EntityType.PLAYER, UUID.randomUUID(), location,0);
super(server, EntityType.PLAYER, UUID.nameUUIDFromBytes(uuid.toString().getBytes(StandardCharsets.UTF_8)), location,0);
this.actualUUID = uuid;
this.name = name;
server.addEntity(this);