Fixed copper/water not getting unlocked immediately
This commit is contained in:
@@ -17,6 +17,7 @@ public class Items implements ContentList{
|
||||
hardness = 1;
|
||||
cost = 0.6f;
|
||||
genOre = true;
|
||||
alwaysUnlocked = true;
|
||||
}};
|
||||
|
||||
lead = new Item("lead", Color.valueOf("8c7fa9")){{
|
||||
|
||||
@@ -17,6 +17,11 @@ public class Liquids implements ContentList{
|
||||
tier = 0;
|
||||
effect = StatusEffects.wet;
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean alwaysUnlocked() {
|
||||
return true;
|
||||
}
|
||||
};
|
||||
|
||||
lava = new Liquid("lava", Color.valueOf("e37341")){
|
||||
|
||||
@@ -129,10 +129,11 @@ public class DebugBlocks extends BlockList implements ContentList{
|
||||
Table cont = new Table();
|
||||
|
||||
for(int i = 0; i < items.size; i++){
|
||||
if(!control.unlocks().isUnlocked(items.get(i))) continue;
|
||||
|
||||
final int f = i;
|
||||
ImageButton button = cont.addImageButton("liquid-icon-" + items.get(i).name, "toggle", 24, () -> {
|
||||
Call.setLiquidSourceLiquid(null, tile, items.get(f));
|
||||
}).size(38, 42).padBottom(-5.1f).group(group).get();
|
||||
ImageButton button = cont.addImageButton("liquid-icon-" + items.get(i).name, "toggle", 24,
|
||||
() -> Call.setLiquidSourceLiquid(null, tile, items.get(f))).size(38, 42).padBottom(-5.1f).group(group).get();
|
||||
button.setChecked(entity.source.id == f);
|
||||
|
||||
if(i % 4 == 3){
|
||||
|
||||
Reference in New Issue
Block a user