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>
|
||||
<groupId>io.github.dre2n</groupId>
|
||||
<artifactId>dungeonsxl</artifactId>
|
||||
<version>0.11-SNAPSHOT-29</version>
|
||||
<version>0.11-SNAPSHOT</version>
|
||||
<packaging>jar</packaging>
|
||||
<name>DungeonsXL</name>
|
||||
<url>https://dre2n.github.io</url>
|
||||
|
@ -648,6 +648,7 @@ public class GameWorld {
|
||||
|
||||
if (bestTime == 0) {
|
||||
return false;
|
||||
|
||||
} else if (worldConfig.getTimeLastPlayed() != 0) {
|
||||
if (System.currentTimeMillis() - bestTime > worldConfig.getTimeLastPlayed() * (long) 3600000) {
|
||||
return false;
|
||||
|
@ -499,6 +499,8 @@ public class DPlayer extends DGlobalPlayer {
|
||||
}
|
||||
|
||||
public void leave() {
|
||||
delete();
|
||||
|
||||
if (!editing) {
|
||||
WorldConfig dConfig = GameWorld.getByWorld(world).getConfig();
|
||||
if (finished) {
|
||||
@ -603,8 +605,6 @@ public class DPlayer extends DGlobalPlayer {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
delete();
|
||||
}
|
||||
|
||||
public void ready() {
|
||||
|
Loading…
Reference in New Issue
Block a user