Fixed infinite copper bug
This commit is contained in:
@@ -61,7 +61,7 @@ public class Zones implements ContentList{
|
||||
}};
|
||||
|
||||
craters = new Zone("craters", new MapGenerator("craters", 1).dist(0)){{
|
||||
deployCost = ItemStack.with(Items.copper, 300);
|
||||
deployCost = ItemStack.with(Items.copper, 200);
|
||||
startingItems = ItemStack.with(Items.copper, 200);
|
||||
conditionWave = 15;
|
||||
itemRequirements = ItemStack.with(Items.copper, 2000);
|
||||
|
||||
@@ -38,7 +38,7 @@ public class GameState{
|
||||
}
|
||||
|
||||
public boolean isPaused(){
|
||||
return is(State.paused) && !Net.active();
|
||||
return (is(State.paused) && !Net.active()) || gameOver;
|
||||
}
|
||||
|
||||
public boolean is(State astate){
|
||||
|
||||
@@ -119,8 +119,8 @@ public class GlobalData{
|
||||
}
|
||||
|
||||
//set up default values
|
||||
if(!Core.settings.has("item-" + Items.copper)){
|
||||
addItem(Items.copper, 500);
|
||||
if(!Core.settings.has("item-" + Items.copper.name)){
|
||||
addItem(Items.copper, 300);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user