SteamWar/BauSystem2.0
Archiviert
12
0

Fix WarpListener
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Signed-off-by: yoyosource <yoyosource@nidido.de>
Dieser Commit ist enthalten in:
yoyosource 2022-07-28 15:50:53 +02:00
Ursprung ccb2f8540f
Commit 5d8bd398ec
3 geänderte Dateien mit 2 neuen und 3 gelöschten Zeilen

Datei anzeigen

@ -43,7 +43,7 @@ public class WarpEntity19 extends BaseArmorStand19 implements AbstractWarpEntity
@Override @Override
public void display(Player player) { public void display(Player player) {
this.n(true); this.n(true);
this.a(IChatMutableComponent.a(new LiteralContents(name))); this.b(IChatMutableComponent.a(new LiteralContents(name)));
sendEntity(player); sendEntity(player);
} }

Datei anzeigen

@ -47,7 +47,7 @@ public class BaseArmorStand19 extends EntityArmorStand implements AbstractEntity
} }
public void sendEntity(Player player) { public void sendEntity(Player player) {
PacketPlayOutSpawnEntity packetPlayOutSpawnEntity = new PacketPlayOutSpawnEntity(ae(), cp(), position.getX(), position.getY(), position.getZ(), 0, 0, EntityTypes.c, 0, ZERO, 0.0); PacketPlayOutSpawnEntity packetPlayOutSpawnEntity = new PacketPlayOutSpawnEntity(ae(), cp(), position.getX(), position.getY(), position.getZ(), 0, 0, EntityTypes.d, 0, ZERO, 0.0);
PlayerConnection playerConnection = ((CraftPlayer) player).getHandle().b; PlayerConnection playerConnection = ((CraftPlayer) player).getHandle().b;
playerConnection.a(packetPlayOutSpawnEntity); playerConnection.a(packetPlayOutSpawnEntity);

Datei anzeigen

@ -63,7 +63,6 @@ public class WarpListener implements Listener {
} }
private void createStuff(Player p, Material material, boolean sneaking) { private void createStuff(Player p, Material material, boolean sneaking) {
if (true) return;
if (warpsShown.containsKey(p)) { if (warpsShown.containsKey(p)) {
warpsShown.get(p).forEach(warp -> { warpsShown.get(p).forEach(warp -> {
warp.hide(p); warp.hide(p);