mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-26 06:22:17 -08:00
Fixed #7218
This commit is contained in:
parent
da1103a2c0
commit
5ae204dd22
2 changed files with 3 additions and 3 deletions
|
|
@ -158,7 +158,7 @@ public class GameService{
|
|||
Events.on(UnitCreateEvent.class, e -> {
|
||||
if(campaign()){
|
||||
if(unitsBuilt.add(e.unit.type.name)){
|
||||
SStat.unitTypesBuilt.set(content.units().count(u -> unitsBuilt.contains(u.name) && !u.isHidden()));
|
||||
SStat.unitTypesBuilt.max(content.units().count(u -> unitsBuilt.contains(u.name) && !u.isHidden()));
|
||||
save();
|
||||
}
|
||||
|
||||
|
|
@ -325,7 +325,7 @@ public class GameService{
|
|||
}
|
||||
|
||||
for(Building entity : player.team().cores()){
|
||||
if(!content.items().contains(i -> entity.items.get(i) < entity.block.itemCapacity)){
|
||||
if(!content.items().contains(i -> !state.rules.hiddenBuildItems.contains(i) && entity.items.get(i) < entity.block.itemCapacity)){
|
||||
fillCoreAllCampaign.complete();
|
||||
break;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -25,4 +25,4 @@ org.gradle.caching=true
|
|||
#used for slow jitpack builds; TODO see if this actually works
|
||||
org.gradle.internal.http.socketTimeout=100000
|
||||
org.gradle.internal.http.connectionTimeout=100000
|
||||
archash=47925a7b91
|
||||
archash=7d543096d5
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue