Fixed Button and Lever MaterialData returning incorrect getAttachedFace()
This commit is contained in:
parent
efd4871672
commit
5f407c11a2
@ -40,7 +40,7 @@ public class Button extends MaterialData implements Redstone, Attachable {
|
|||||||
* @return BlockFace attached to
|
* @return BlockFace attached to
|
||||||
*/
|
*/
|
||||||
public BlockFace getAttachedFace() {
|
public BlockFace getAttachedFace() {
|
||||||
byte data = (byte) (getData() ^ 0x8);
|
byte data = (byte) (getData() ^ 0x7);
|
||||||
|
|
||||||
switch (data) {
|
switch (data) {
|
||||||
case 0x1:
|
case 0x1:
|
||||||
|
@ -40,7 +40,7 @@ public class Lever extends MaterialData implements Redstone, Attachable {
|
|||||||
* @return BlockFace attached to
|
* @return BlockFace attached to
|
||||||
*/
|
*/
|
||||||
public BlockFace getAttachedFace() {
|
public BlockFace getAttachedFace() {
|
||||||
byte data = (byte) (getData() ^ 0x8);
|
byte data = (byte) (getData() ^ 0x7);
|
||||||
|
|
||||||
switch (data) {
|
switch (data) {
|
||||||
case 0x1:
|
case 0x1:
|
||||||
|
Loading…
x
Reference in New Issue
Block a user