Add option for legacy sign material

Follow up to cde27899dd
This commit is contained in:
NotMyFault
2021-05-22 12:34:04 +02:00
parent eb7eb15ee7
commit 87706d471b
2 changed files with 30 additions and 4 deletions

View File

@ -341,7 +341,6 @@ public class BukkitUtil extends WorldUtil {
PlotArea area = location.getPlotArea();
final World world = getWorld(location.getWorldName());
final Block block = world.getBlockAt(location.getX(), location.getY(), location.getZ());
// block.setType(Material.AIR);
final Material type = block.getType();
if (type != Material.LEGACY_SIGN && type != Material.LEGACY_WALL_SIGN) {
BlockFace facing = BlockFace.EAST;
@ -353,7 +352,7 @@ public class BukkitUtil extends WorldUtil {
facing = BlockFace.SOUTH;
}
if (PlotSquared.platform().serverVersion()[1] == 13) {
block.setType(Material.valueOf("WALL_SIGN"), false);
block.setType(Material.valueOf(area.legacySignMaterial()), false);
} else {
block.setType(Material.valueOf(area.signMaterial()), false);
}