Fixed player respawning at editor location
This commit is contained in:
@@ -258,6 +258,7 @@ public class MapEditorDialog extends Dialog implements Disposable{
|
|||||||
private void save(){
|
private void save(){
|
||||||
String name = editor.getTags().get("name", "").trim();
|
String name = editor.getTags().get("name", "").trim();
|
||||||
editor.getTags().put("rules", JsonIO.write(state.rules));
|
editor.getTags().put("rules", JsonIO.write(state.rules));
|
||||||
|
player.dead = true;
|
||||||
|
|
||||||
if(name.isEmpty()){
|
if(name.isEmpty()){
|
||||||
infoDialog.show();
|
infoDialog.show();
|
||||||
|
|||||||
Reference in New Issue
Block a user