mirror of
https://github.com/taoneill/war.git
synced 2024-11-27 12:46:11 +01:00
Updated to CB 386. Finally fixed the signs issue thanks to Grums help. Turns out the resetzone bug solves itself after a few minutes .. huh.
This commit is contained in:
parent
a184ff4bf1
commit
091c237406
@ -13,10 +13,8 @@ public class SignHelper {
|
||||
if(block.getType() != Material.SIGN_POST) {
|
||||
block.setType(Material.SIGN_POST);
|
||||
}
|
||||
if(block.getData() != data) {
|
||||
block.setData(data);
|
||||
}
|
||||
BlockState state = block.getState();
|
||||
state.setData(new org.bukkit.material.Sign(Material.SIGN_POST, data));
|
||||
if(state instanceof Sign) {
|
||||
Sign sign = (Sign) state;
|
||||
try {
|
||||
@ -28,7 +26,6 @@ public class SignHelper {
|
||||
sign.update(true);
|
||||
}
|
||||
} catch (Exception e) {
|
||||
|
||||
// just can't stand this anymore
|
||||
}
|
||||
}
|
||||
|
@ -170,8 +170,8 @@ public class Volume {
|
||||
|| oldBlockType == Material.SIGN_POST.getId()) {
|
||||
// Signs
|
||||
currentBlock.setType(Material.getMaterial(oldBlockType));
|
||||
currentBlock.setData(oldBlockData);
|
||||
BlockState state = currentBlock.getState();
|
||||
state.setData(new org.bukkit.material.Sign(oldBlockType, oldBlockData));
|
||||
if(state instanceof Sign) {
|
||||
Sign sign = (Sign)state;
|
||||
String[] lines = this.getSignLines().get("sign-" + i + "-" + j + "-" + k);
|
||||
|
Loading…
Reference in New Issue
Block a user