mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2024-09-06 00:58:26 +02:00
attempt to fix signs
This commit is contained in:
parent
bae3774eb6
commit
b2b2f3cd05
@ -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.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;
|
||||||
import org.bukkit.entity.Player;
|
import org.bukkit.entity.Player;
|
||||||
@ -341,8 +342,8 @@ import java.util.*;
|
|||||||
facing = BlockFace.SOUTH;
|
facing = BlockFace.SOUTH;
|
||||||
}
|
}
|
||||||
block.setType(Material.LEGACY_WALL_SIGN, false);
|
block.setType(Material.LEGACY_WALL_SIGN, false);
|
||||||
final WallSign sign = (WallSign) 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();
|
||||||
|
Loading…
Reference in New Issue
Block a user