mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-11-22 21:26:45 +01:00
Should fix the sign issue
This commit is contained in:
parent
1e97392244
commit
bd1217810f
@ -13,6 +13,7 @@ import org.bukkit.Material;
|
|||||||
import org.bukkit.OfflinePlayer;
|
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.Rotatable;
|
import org.bukkit.block.data.Rotatable;
|
||||||
import org.bukkit.block.data.type.WallSign;
|
import org.bukkit.block.data.type.WallSign;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
@ -342,10 +343,9 @@ import java.util.*;
|
|||||||
facing = BlockFace.SOUTH;
|
facing = BlockFace.SOUTH;
|
||||||
}
|
}
|
||||||
block.setType(Material.LEGACY_WALL_SIGN, false);
|
block.setType(Material.LEGACY_WALL_SIGN, false);
|
||||||
Bukkit.getConsoleSender().sendMessage("Please report to MattBDev on Discord: " + block.getBlockData().getClass().getName());
|
final Directional sign = (Directional) block.getBlockData();
|
||||||
//final Rotatable sign = (Rotatable) block.getBlockData();
|
sign.setFacing(facing);
|
||||||
//sign.setRotation(facing);
|
block.setBlockData(sign, false);
|
||||||
//block.setBlockData(sign, false);
|
|
||||||
}
|
}
|
||||||
final BlockState blockstate = block.getState();
|
final BlockState blockstate = block.getState();
|
||||||
if (blockstate instanceof Sign) {
|
if (blockstate instanceof Sign) {
|
||||||
|
Loading…
Reference in New Issue
Block a user