Fix wall sign protection on 1.12.2 and below

Fixes #2635.
This commit is contained in:
md678685 2019-06-27 15:48:18 +01:00
parent 19f03cd70e
commit bcdbbe9546

View File

@ -448,7 +448,7 @@ public class EssentialsSign {
try { try {
final WallSign signData = (WallSign) block.getState().getBlockData(); final WallSign signData = (WallSign) block.getState().getBlockData();
return signData.getFacing(); return signData.getFacing();
} catch (NoClassDefFoundError e) { } catch (NoClassDefFoundError | NoSuchMethodError e) {
final org.bukkit.material.Sign signMat = (org.bukkit.material.Sign) block.getState().getData(); final org.bukkit.material.Sign signMat = (org.bukkit.material.Sign) block.getState().getData();
return signMat.getFacing(); return signMat.getFacing();
} }