mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-28 21:48:43 +01:00
Fix /dxl leave NPE
This commit is contained in:
parent
02e738e840
commit
a4f04ab92b
@ -362,9 +362,9 @@ public class DGamePlayer extends DInstancePlayer {
|
||||
/* Actions */
|
||||
@Override
|
||||
public void leave() {
|
||||
GameRules rules = Game.getByWorld(getWorld()).getRules();
|
||||
delete();
|
||||
|
||||
GameRules rules = Game.getByWorld(getWorld()).getRules();
|
||||
if (finished) {
|
||||
getSavePlayer().reset(rules.getKeepInventoryOnFinish());
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user