From b2b2f3cd058c45f8cbc08b007f72b397f4ebdacb Mon Sep 17 00:00:00 2001 From: MattBDev <4009945+MattBDev@users.noreply.github.com> Date: Tue, 23 Apr 2019 14:24:55 -0400 Subject: [PATCH] attempt to fix signs --- .../plotsquared/bukkit/util/BukkitUtil.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitUtil.java b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitUtil.java index 8b6ea0ec8..1eea02ab4 100644 --- a/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitUtil.java +++ b/Bukkit/src/main/java/com/github/intellectualsites/plotsquared/bukkit/util/BukkitUtil.java @@ -13,6 +13,7 @@ import org.bukkit.Material; import org.bukkit.OfflinePlayer; import org.bukkit.World; import org.bukkit.block.*; +import org.bukkit.block.data.Rotatable; import org.bukkit.block.data.type.WallSign; import org.bukkit.entity.Entity; import org.bukkit.entity.Player; @@ -341,8 +342,8 @@ import java.util.*; facing = BlockFace.SOUTH; } block.setType(Material.LEGACY_WALL_SIGN, false); - final WallSign sign = (WallSign) block.getBlockData(); - sign.setFacing(facing); + final Rotatable sign = (Rotatable) block.getBlockData(); + sign.setRotation(facing); block.setBlockData(sign, false); } final BlockState blockstate = block.getState();