mirror of
https://github.com/DRE2N/DungeonsXL.git
synced 2024-11-25 03:55:22 +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 */
|
/* Actions */
|
||||||
@Override
|
@Override
|
||||||
public void leave() {
|
public void leave() {
|
||||||
|
GameRules rules = Game.getByWorld(getWorld()).getRules();
|
||||||
delete();
|
delete();
|
||||||
|
|
||||||
GameRules rules = Game.getByWorld(getWorld()).getRules();
|
|
||||||
if (finished) {
|
if (finished) {
|
||||||
getSavePlayer().reset(rules.getKeepInventoryOnFinish());
|
getSavePlayer().reset(rules.getKeepInventoryOnFinish());
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user