Removed all references to size
This commit is contained in:
@@ -133,8 +133,8 @@ public class SectorsDialog extends FloatingDialog{
|
||||
float drawY = y + height/2f + sectorY * padSectorSize - offsetY * padSectorSize - panY % padSectorSize;
|
||||
|
||||
Sector sector = world.sectors.get(sectorX, sectorY);
|
||||
int width = (sector == null ? 1 : sector.width);
|
||||
int height = (sector == null ? 1 : sector.height);
|
||||
int width = 1;
|
||||
int height = 1;
|
||||
float paddingx = (width-1) * sectorPadding;
|
||||
float paddingy = (height-1) * sectorPadding;
|
||||
|
||||
|
||||
@@ -151,9 +151,7 @@ public class SettingsMenuDialog extends SettingsDialog{
|
||||
dialog.addCloseButton();
|
||||
dialog.content().addButton("$text.settings.clearsectors", "clear", () -> {
|
||||
ui.showConfirm("$text.confirm", "$text.settings.clear.confirm", () -> {
|
||||
Settings.clearBytes("sectors");
|
||||
Settings.save();
|
||||
world.sectors.load();
|
||||
world.sectors.clear();
|
||||
dialog.hide();
|
||||
});
|
||||
});
|
||||
@@ -161,7 +159,6 @@ public class SettingsMenuDialog extends SettingsDialog{
|
||||
dialog.content().addButton("$text.settings.clearunlocks", "clear", () -> {
|
||||
ui.showConfirm("$text.confirm", "$text.settings.clear.confirm", () -> {
|
||||
control.unlocks.reset();
|
||||
Settings.save();
|
||||
dialog.hide();
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user