mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-24 19:45:43 +01:00
Fixed leave teleportation bug
This commit is contained in:
parent
f6bf75e051
commit
0afca982b2
2
pom.xml
2
pom.xml
@ -2,7 +2,7 @@
|
|||||||
<modelVersion>4.0.0</modelVersion>
|
<modelVersion>4.0.0</modelVersion>
|
||||||
<groupId>io.github.dre2n</groupId>
|
<groupId>io.github.dre2n</groupId>
|
||||||
<artifactId>dungeonsxl</artifactId>
|
<artifactId>dungeonsxl</artifactId>
|
||||||
<version>0.11-SNAPSHOT-29</version>
|
<version>0.11-SNAPSHOT</version>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
||||||
<name>DungeonsXL</name>
|
<name>DungeonsXL</name>
|
||||||
<url>https://dre2n.github.io</url>
|
<url>https://dre2n.github.io</url>
|
||||||
|
@ -648,6 +648,7 @@ public class GameWorld {
|
|||||||
|
|
||||||
if (bestTime == 0) {
|
if (bestTime == 0) {
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
} else if (worldConfig.getTimeLastPlayed() != 0) {
|
} else if (worldConfig.getTimeLastPlayed() != 0) {
|
||||||
if (System.currentTimeMillis() - bestTime > worldConfig.getTimeLastPlayed() * (long) 3600000) {
|
if (System.currentTimeMillis() - bestTime > worldConfig.getTimeLastPlayed() * (long) 3600000) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -499,6 +499,8 @@ public class DPlayer extends DGlobalPlayer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
public void leave() {
|
public void leave() {
|
||||||
|
delete();
|
||||||
|
|
||||||
if (!editing) {
|
if (!editing) {
|
||||||
WorldConfig dConfig = GameWorld.getByWorld(world).getConfig();
|
WorldConfig dConfig = GameWorld.getByWorld(world).getConfig();
|
||||||
if (finished) {
|
if (finished) {
|
||||||
@ -603,8 +605,6 @@ public class DPlayer extends DGlobalPlayer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
delete();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ready() {
|
public void ready() {
|
||||||
|
Loading…
Reference in New Issue
Block a user