Possible save fix / Place arrow de-mushroomified / Fixed descriptions
This commit is contained in:
@@ -445,11 +445,11 @@ public class Blocks implements ContentList{
|
||||
results = new ItemStack[]{
|
||||
new ItemStack(Items.copper, 5),
|
||||
new ItemStack(Items.lead, 3),
|
||||
new ItemStack(Items.graphite, 2),
|
||||
new ItemStack(Items.titanium, 2)
|
||||
};
|
||||
hasPower = true;
|
||||
filterTime = 30f;
|
||||
health = 50 * 4;
|
||||
spinnerLength = 1.5f;
|
||||
spinnerRadius = 3.5f;
|
||||
spinnerThickness = 1.5f;
|
||||
@@ -457,7 +457,7 @@ public class Blocks implements ContentList{
|
||||
size = 2;
|
||||
|
||||
consumes.power(1f);
|
||||
consumes.liquid(Liquids.slag, 0.1f);
|
||||
consumes.liquid(Liquids.slag, 0.09f);
|
||||
}};
|
||||
|
||||
cultivator = new Cultivator("cultivator"){{
|
||||
|
||||
@@ -301,6 +301,11 @@ public class Control implements ApplicationListener{
|
||||
inputHandler.updateController();
|
||||
}
|
||||
|
||||
//autosave global data every second if it's modified
|
||||
if(timer.get(1, 60)){
|
||||
data.checkSave();
|
||||
}
|
||||
|
||||
if(!state.is(State.menu)){
|
||||
for(InputHandler input : inputs){
|
||||
input.update();
|
||||
@@ -316,11 +321,6 @@ public class Control implements ApplicationListener{
|
||||
}
|
||||
}
|
||||
|
||||
//autosave global data every second if it's modified
|
||||
if(timer.get(1, 60)){
|
||||
data.checkSave();
|
||||
}
|
||||
|
||||
//auto-update rpc every 5 seconds
|
||||
if(timer.get(0, 60 * 5)){
|
||||
Platform.instance.updateRPC();
|
||||
|
||||
@@ -19,7 +19,7 @@ public class ItemImage extends Stack{
|
||||
}
|
||||
|
||||
public ItemImage(ItemStack stack){
|
||||
add(new Image(stack.item.icon(Icon.large)));
|
||||
add(new Image(stack.item.icon(Icon.medium)));
|
||||
|
||||
if(stack.amount != 0){
|
||||
Table t = new Table().left().bottom();
|
||||
|
||||
@@ -211,7 +211,7 @@ public class TechTreeDialog extends FloatingDialog{
|
||||
list.left();
|
||||
list.addImage(req.item.getContentIcon()).size(8 * 3).padRight(3);
|
||||
list.add(req.item.localizedName()).color(Color.LIGHT_GRAY);
|
||||
list.add(" " + Math.min(data.items().get(req.item, 0), req.amount) + " / " + req.amount)
|
||||
list.add(" " + Math.min(data.getItem(req.item), req.amount) + " / " + req.amount)
|
||||
.color(data.has(req.item, req.amount) ? Color.LIGHT_GRAY : Color.SCARLET);
|
||||
}).fillX().left();
|
||||
t.row();
|
||||
|
||||
Reference in New Issue
Block a user