Added logging and rollback support for double sided signs
This commit is contained in:
parent
7e97e12969
commit
4e43a42662
25 changed files with 658 additions and 107 deletions
|
|
@ -1631,4 +1631,23 @@ public class Util extends Queue {
|
|||
return isInventory ? 2 : 1;
|
||||
}
|
||||
}
|
||||
|
||||
public static int getSignData(boolean frontGlowing, boolean backGlowing) {
|
||||
if (frontGlowing && backGlowing) {
|
||||
return 3;
|
||||
}
|
||||
else if (backGlowing) {
|
||||
return 2;
|
||||
}
|
||||
else if (frontGlowing) {
|
||||
return 1;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
public static boolean isSideGlowing(boolean isFront, int data) {
|
||||
return ((isFront && (data == 1 || data == 3)) || (!isFront && (data == 2 || data == 3)));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue