13
0

Fix NPC
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Fix TeamPlayer spawnlocation
Dieser Commit ist enthalten in:
yoyosource 2022-03-26 11:38:22 +01:00
Ursprung eb3ec5cd24
Commit 4ac8aebaa7
2 geänderte Dateien mit 4 neuen und 2 gelöschten Zeilen

Datei anzeigen

@ -178,7 +178,9 @@ public class NPC {
} }
private void show(Player player) { private void show(Player player) {
if (Bukkit.getOnlinePlayers().stream().noneMatch(p -> p.getUniqueId().equals(uuid))) {
TinyProtocol.instance.sendPacket(player, addPlayerInfo); TinyProtocol.instance.sendPacket(player, addPlayerInfo);
}
TinyProtocol.instance.sendPacket(player, namedSpawn); TinyProtocol.instance.sendPacket(player, namedSpawn);
TinyProtocol.instance.sendPacket(player, headRotation); TinyProtocol.instance.sendPacket(player, headRotation);
TinyProtocol.instance.sendPacket(player, skinParts); TinyProtocol.instance.sendPacket(player, skinParts);

Datei anzeigen

@ -43,7 +43,7 @@ public class TeamPlayer extends BasicListener {
private static Map<Entity, NPC> entities = new HashMap<>(); private static Map<Entity, NPC> entities = new HashMap<>();
public static void spawnTeamPlayer(World world, String name) { public static void spawnTeamPlayer(World world, String name) {
Location location = new Location(world, 1524.5, 52, 1493.5); Location location = new Location(world, 1524.5, 52, 1481.5);
NPC npc = new NPC(location, SteamwarUser.get(name).getUUID(), name); NPC npc = new NPC(location, SteamwarUser.get(name).getUUID(), name);
Villager villager = (Villager) world.spawnEntity(location, EntityType.VILLAGER); Villager villager = (Villager) world.spawnEntity(location, EntityType.VILLAGER);
villager.setSilent(true); villager.setSilent(true);