mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-25 22:56:45 +01:00
Fix signs between 1.13 and 1.14
This commit is contained in:
parent
c7ba94f959
commit
9485f82ea9
@ -14,8 +14,6 @@ import org.bukkit.OfflinePlayer;
|
|||||||
import org.bukkit.World;
|
import org.bukkit.World;
|
||||||
import org.bukkit.block.*;
|
import org.bukkit.block.*;
|
||||||
import org.bukkit.block.data.Directional;
|
import org.bukkit.block.data.Directional;
|
||||||
import org.bukkit.block.data.Rotatable;
|
|
||||||
import org.bukkit.block.data.type.WallSign;
|
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
import org.bukkit.inventory.Inventory;
|
import org.bukkit.inventory.Inventory;
|
||||||
@ -342,7 +340,9 @@ import java.util.*;
|
|||||||
} else if (world.getBlockAt(x, y, z - 1).getType().isSolid()) {
|
} else if (world.getBlockAt(x, y, z - 1).getType().isSolid()) {
|
||||||
facing = BlockFace.SOUTH;
|
facing = BlockFace.SOUTH;
|
||||||
}
|
}
|
||||||
block.setType(Material.LEGACY_WALL_SIGN, false);
|
block.setType(Material.valueOf(
|
||||||
|
PlotSquared.get().IMP.getServerVersion()[1] == 13 ? "WALL_SIGN" : "OAK_WALL_SIGN"),
|
||||||
|
false);
|
||||||
final Directional sign = (Directional) block.getBlockData();
|
final Directional sign = (Directional) block.getBlockData();
|
||||||
sign.setFacing(facing);
|
sign.setFacing(facing);
|
||||||
block.setBlockData(sign, false);
|
block.setBlockData(sign, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user