mirror of
https://github.com/songoda/EpicHoppers.git
synced 2024-11-23 02:35:18 +01:00
Fix for incompatible 1.12 sound.
This commit is contained in:
parent
3fa1f19865
commit
9a41eec47b
@ -4,7 +4,7 @@ stages:
|
||||
variables:
|
||||
name: "EpicHoppers"
|
||||
path: "/builds/$CI_PROJECT_PATH"
|
||||
version: "4"
|
||||
version: "4.0.1"
|
||||
|
||||
build:
|
||||
stage: build
|
||||
|
@ -106,6 +106,6 @@ public class TeleportHandler {
|
||||
entity.teleport(location);
|
||||
|
||||
if (this.instance.isServerVersionAtLeast(ServerVersion.V1_12))
|
||||
entity.getWorld().playSound(entity.getLocation(), Sound.ENTITY_ENDERMAN_TELEPORT, 10, 10);
|
||||
entity.getWorld().playSound(entity.getLocation(), this.instance.isServerVersion(ServerVersion.V1_12) ? Sound.valueOf("ENTITY_ENDERMEN_TELEPORT") : Sound.ENTITY_ENDERMAN_TELEPORT, 10, 10);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user