Cleanup
This commit is contained in:
@@ -73,7 +73,7 @@ public class Rules{
|
||||
/** Spawn layout. */
|
||||
public Seq<SpawnGroup> spawns = new Seq<>();
|
||||
/** Starting items put in cores */
|
||||
public Seq<ItemStack> loadout = Seq.with(ItemStack.with(Items.copper, 100));
|
||||
public Seq<ItemStack> loadout = ItemStack.list(Items.copper, 100);
|
||||
/** Weather events that occur here. */
|
||||
public Seq<WeatherEntry> weather = new Seq<>(1);
|
||||
/** Blocks that cannot be placed. */
|
||||
|
||||
@@ -144,10 +144,8 @@ public class CustomRulesDialog extends BaseDialog{
|
||||
|
||||
main.button("$configure",
|
||||
() -> loadoutDialog.show(Blocks.coreShard.itemCapacity, rules.loadout,
|
||||
() -> {
|
||||
rules.loadout.clear();
|
||||
rules.loadout.add(new ItemStack(Items.copper, 100));
|
||||
}, () -> {}, () -> {}
|
||||
() -> rules.loadout.clear().add(new ItemStack(Items.copper, 100)),
|
||||
() -> {}, () -> {}
|
||||
)).left().width(300f);
|
||||
main.row();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user