Format some more code
This commit is contained in:
parent
82dd666ef7
commit
5c34b00302
@ -170,8 +170,7 @@ public class TrySitEventListener implements Listener {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
private Location getSitLocation(Block block, Float playerYaw)
|
private Location getSitLocation(Block block, Float playerYaw) {
|
||||||
{
|
|
||||||
double sh = 0.7;
|
double sh = 0.7;
|
||||||
|
|
||||||
for (ChairBlock cb : plugin.allowedBlocks) {
|
for (ChairBlock cb : plugin.allowedBlocks) {
|
||||||
@ -267,10 +266,8 @@ public class TrySitEventListener implements Listener {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private boolean checkDirection(Block block1, Block block2) {
|
private boolean checkDirection(Block block1, Block block2) {
|
||||||
if (block1.getState().getData() instanceof Stairs
|
if (block1.getState().getData() instanceof Stairs && block2.getState().getData() instanceof Stairs) {
|
||||||
&& block2.getState().getData() instanceof Stairs) {
|
if (((Stairs) block1.getState().getData()).getDescendingDirection().equals(((Stairs) block2.getState().getData()).getDescendingDirection())) {
|
||||||
if (((Stairs) block1.getState().getData()).getDescendingDirection()
|
|
||||||
.equals(((Stairs) block2.getState().getData()).getDescendingDirection())) {
|
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user