13
0

Sound on portal
Alle Prüfungen waren erfolgreich
SteamWarCI Build successful

Dieser Commit ist enthalten in:
Lixfel 2022-03-22 22:35:53 +01:00
Ursprung 9db373c0f3
Commit ac4170d6b0

Datei anzeigen

@ -81,7 +81,7 @@ public class TeleportPortal implements PortalHandler {
if (target.getDepth() != 0.0) {
normalized.setX(1 - portal.normalize(from).getX());
}
player.playSound(player.getLocation(), Sound.BLOCK_PORTAL_TRAVEL, 1.0f, 1.0f);
player.playSound(player.getLocation(), Sound.BLOCK_ENCHANTMENT_TABLE_USE, 0.25f, 1.0f);
player.teleport(target.denormalize(normalized).toLocation(to.getWorld(), (float) (to.getYaw() - Math.toDegrees(target.getYrotation() - portal.getYrotation())), to.getPitch()), PlayerTeleportEvent.TeleportCause.PLUGIN);
}