Skip to content

Commit

Permalink
null
Browse files Browse the repository at this point in the history
  • Loading branch information
nullaqua committed Mar 14, 2022
1 parent 4ec1137 commit 3570076
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>me.lanzhi</groupId>
<artifactId>BluestarGame</artifactId>
<version>2.3.0</version>
<version>2.3.1</version>
<packaging>jar</packaging>

<name>BluestarGame</name>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/me/lanzhi/bluestargame/listener/Elevator.java
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public void onPlayerMove(PlayerMoveEvent event)
locc.setY(y);
Location loccc=loc.clone();
loccc.setY(y-1);
if (!locc.getBlock().getType().isSolid()&&loccc.getBlock().getType().isSolid())
if ((!locc.getBlock().getType().isSolid()||locc.getBlock().getType().name().endsWith("SIGN"))&&(loccc.getBlock().getType().isSolid()&&!loccc.getBlock().getType().name().endsWith("SIGN")))
{
event.getPlayer().teleport(locc);
return;
Expand All @@ -58,7 +58,7 @@ public void onPlayerSneak(PlayerToggleSneakEvent event)
locc.setY(y);
Location loccc=loc.clone();
loccc.setY(y-1);
if (!locc.getBlock().getType().isSolid()&&loccc.getBlock().getType().isSolid())
if ((!locc.getBlock().getType().isSolid()||locc.getBlock().getType().name().endsWith("SIGN"))&&(loccc.getBlock().getType().isSolid()&&!loccc.getBlock().getType().name().endsWith("SIGN")))
{
event.getPlayer().teleport(locc);
return;
Expand Down

0 comments on commit 3570076

Please sign in to comment.