mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-11-05 18:19:38 +01:00
Make use of the CompatibleSound API.
This commit is contained in:
parent
42710c6b3b
commit
9aba0f8fa3
@ -109,7 +109,6 @@ public class TeleportHandler {
|
||||
|
||||
entity.teleport(location);
|
||||
|
||||
if (ServerVersion.isServerVersionAtLeast(ServerVersion.V1_12))
|
||||
entity.getWorld().playSound(entity.getLocation(), ServerVersion.isServerVersion(ServerVersion.V1_12) ? Sound.valueOf("ENTITY_ENDERMEN_TELEPORT") : Sound.ENTITY_ENDERMAN_TELEPORT, 10, 10);
|
||||
CompatibleSound.ENTITY_ENDERMAN_TELEPORT.play(entity.getWorld(), entity.getLocation(), 10, 10);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user