Fix for incompatible 1.12 sound.

This commit is contained in:
Brianna 2019-06-15 01:56:24 -04:00
parent 3fa1f19865
commit 9a41eec47b
2 changed files with 2 additions and 2 deletions

View File

@ -4,7 +4,7 @@ stages:
variables:
name: "EpicHoppers"
path: "/builds/$CI_PROJECT_PATH"
version: "4"
version: "4.0.1"
build:
stage: build

View File

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