Fixed player colors not being saved

This commit is contained in:
Anuken
2018-06-27 13:58:55 -04:00
parent 23bb409639
commit 3640f1ba77
2 changed files with 2 additions and 2 deletions

View File

@ -38,7 +38,7 @@ public class HostDialog extends FloatingDialog{
ImageButton button = t.addImageButton("white", 40, () -> {
new ColorPickDialog().show(color -> {
player.color.set(color);
Settings.putInt("color", Color.rgba8888(color));
Settings.putInt("color-0", Color.rgba8888(color));
Settings.save();
});
}).size(50f, 54f).get();

View File

@ -217,7 +217,7 @@ public class JoinDialog extends FloatingDialog {
ImageButton button = t.addImageButton("white", 40, () -> {
new ColorPickDialog().show(color -> {
player.color.set(color);
Settings.putInt("color", Color.rgba8888(color));
Settings.putInt("color-0", Color.rgba8888(color));
Settings.save();
});
}).size(50f, 54f).get();