Dependency resolution fix
This commit is contained in:
@@ -1251,7 +1251,7 @@ hint.mine = Move near the \uf8c4 copper ore and [accent]tap[] it to mine manuall
|
||||
hint.desktopShoot = [accent][[Left-click][] to shoot.
|
||||
hint.depositItems = To transfer items, drag from your ship to the core.
|
||||
hint.respawn = To respawn as a ship, press [accent][[V][].
|
||||
hint.respawn.mobile = You have switched control a unit/structure. To respawn as a ship, [accent]tap the avatar in the top left.[]
|
||||
hint.respawn.mobile = You have switched control to a unit/structure. To respawn as a ship, [accent]tap the avatar in the top left.[]
|
||||
hint.desktopPause = Press [accent][[Space][] to pause and unpause the game.
|
||||
hint.placeDrill = Select the \ue85e [accent]Drill[] tab in the menu at the bottom right, then select a \uf870 [accent]Drill[] and click on a copper patch to place it.
|
||||
hint.placeDrill.mobile = Select the \ue85e[accent]Drill[] tab in the menu at the bottom right, then select a \uf870 [accent]Drill[] and tap on a copper patch to place it.\n\nPress the \ue800 [accent]checkmark[] at the bottom right to confirm.
|
||||
|
||||
@@ -13,7 +13,6 @@ public class Liquids implements ContentList{
|
||||
water = new Liquid("water", Color.valueOf("596ab8")){{
|
||||
heatCapacity = 0.4f;
|
||||
effect = StatusEffects.wet;
|
||||
alwaysUnlocked = true;
|
||||
}};
|
||||
|
||||
slag = new Liquid("slag", Color.valueOf("ffa166")){{
|
||||
|
||||
@@ -249,9 +249,10 @@ public class PlanetDialog extends BaseDialog implements PlanetInterfaceRenderer{
|
||||
|
||||
boolean canSelect(Sector sector){
|
||||
if(mode == select) return sector.hasBase();
|
||||
//preset sectors can only be selected once unlocked
|
||||
if(sector.preset != null) return sector.preset.unlocked() || sector.hasBase();
|
||||
|
||||
return sector.hasBase() || sector.near().contains(Sector::hasBase) //near an occupied sector
|
||||
|| (sector.preset != null && sector.preset.unlocked()); //is an unlocked preset
|
||||
return sector.hasBase() || sector.near().contains(Sector::hasBase); //near an occupied sector
|
||||
}
|
||||
|
||||
Sector findLauncher(Sector to){
|
||||
|
||||
@@ -632,18 +632,16 @@ public class Block extends UnlockableContent{
|
||||
cons.get(stack.item);
|
||||
}
|
||||
|
||||
if(consumes.any()){
|
||||
//also requires inputs
|
||||
for(Consume c : consumes.all()){
|
||||
if(c instanceof ConsumeItems i){
|
||||
for(ItemStack stack : i.items){
|
||||
cons.get(stack.item);
|
||||
}
|
||||
}else if(c instanceof ConsumeLiquid i){
|
||||
cons.get(i.liquid);
|
||||
//also requires inputs
|
||||
consumes.each(c -> {
|
||||
if(c instanceof ConsumeItems i){
|
||||
for(ItemStack stack : i.items){
|
||||
cons.get(stack.item);
|
||||
}
|
||||
}else if(c instanceof ConsumeLiquid i){
|
||||
cons.get(i.liquid);
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
@@ -20,6 +20,14 @@ public class Consumers{
|
||||
return results != null && results.length > 0;
|
||||
}
|
||||
|
||||
public void each(Cons<Consume> c){
|
||||
for(var cons : map){
|
||||
if(cons != null){
|
||||
c.get(cons);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public void init(){
|
||||
results = Structs.filter(Consume.class, map, m -> m != null);
|
||||
optionalResults = Structs.filter(Consume.class, map, m -> m != null && m.isOptional());
|
||||
|
||||
Reference in New Issue
Block a user