mirror of
https://github.com/Zrips/Jobs.git
synced 2024-11-29 14:05:25 +01:00
Sign check fix
This commit is contained in:
parent
6294aece85
commit
9b291b299b
@ -21,7 +21,6 @@ import com.gamingmesh.jobs.container.Job;
|
||||
import com.gamingmesh.jobs.container.TopList;
|
||||
|
||||
import net.Zrips.CMILib.FileHandler.ConfigReader;
|
||||
import net.Zrips.CMILib.Items.CMIMaterial;
|
||||
import net.Zrips.CMILib.Messages.CMIMessages;
|
||||
import net.Zrips.CMILib.Version.Version;
|
||||
|
||||
@ -343,13 +342,10 @@ public class SignUtil {
|
||||
org.bukkit.material.Sign signMat = (org.bukkit.material.Sign) sign.getData();
|
||||
directionFacing = signMat.getFacing();
|
||||
} else {
|
||||
if (CMIMaterial.isWallSign(sign.getType())) {
|
||||
org.bukkit.block.data.type.WallSign data = (org.bukkit.block.data.type.WallSign) sign.getBlockData();
|
||||
directionFacing = data.getFacing();
|
||||
} else {
|
||||
org.bukkit.block.data.type.Sign data = (org.bukkit.block.data.type.Sign) sign.getBlockData();
|
||||
directionFacing = data.getRotation();
|
||||
}
|
||||
if (sign.getBlockData() instanceof org.bukkit.block.data.type.WallSign)
|
||||
directionFacing = ((org.bukkit.block.data.type.WallSign) sign.getBlockData()).getFacing();
|
||||
else if (sign.getBlockData() instanceof org.bukkit.block.data.type.Sign)
|
||||
directionFacing = ((org.bukkit.block.data.type.Sign) sign.getBlockData()).getRotation();
|
||||
}
|
||||
|
||||
final Location loc = sign.getLocation().clone();
|
||||
|
Loading…
Reference in New Issue
Block a user