mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-25 05:51:47 -08:00
Don't fill core with hidden items
This commit is contained in:
parent
96b0544261
commit
3cffbec92c
1 changed files with 1 additions and 1 deletions
|
|
@ -472,7 +472,7 @@ public class Logic implements ApplicationListener{
|
|||
if(rules.fillItems && data.cores.size > 0){
|
||||
var core = data.cores.first();
|
||||
content.items().each(i -> {
|
||||
if(i.isOnPlanet(Vars.state.getPlanet())){
|
||||
if(i.isOnPlanet(Vars.state.getPlanet()) && !i.isHidden()){
|
||||
core.items.set(i, core.getMaximumAccepted(i));
|
||||
}
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue