Make use of the CompatibleSound API.

This commit is contained in:
Brianna 2021-06-01 12:45:59 -05:00
parent 42710c6b3b
commit 9aba0f8fa3

View File

@ -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);
}
}