SteamWar/BauSystem2.0
Archiviert
12
0

Fix EntitySound on WarpEntity destroy
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
MoBrot 2022-06-28 21:34:00 +02:00
Ursprung 5265c298d2
Commit e9d7836f9a

Datei anzeigen

@ -23,7 +23,9 @@ import de.steamwar.bausystem.features.warp.AbstractWarpEntity;
import de.steamwar.bausystem.shared.BaseArmorStand19;
import net.minecraft.network.chat.IChatMutableComponent;
import net.minecraft.network.chat.contents.LiteralContents;
import net.minecraft.network.protocol.game.PacketPlayOutEntityTeleport;
import org.bukkit.World;
import org.bukkit.craftbukkit.v1_19_R1.entity.CraftPlayer;
import org.bukkit.entity.Player;
import org.bukkit.util.Vector;
@ -54,6 +56,13 @@ public class WarpEntity19 extends BaseArmorStand19 implements AbstractWarpEntity
@Override
public boolean hide(Player player) {
this.position.setY(this.position.getY() - 1000);
this.e(this.position.getX(), this.position.getY(), this.position.getZ());
PacketPlayOutEntityTeleport entityTeleport = new PacketPlayOutEntityTeleport(this);
((CraftPlayer) player).getHandle().b.a(entityTeleport);
sendEntityDestroy(player);
ag();
return true;