Make fillitems fill the core to the brim (#4462)

Instead of just setting all items to the capacity of the first found core.
This commit is contained in:
Patrick 'Quezler' Mounier
2021-01-29 15:38:26 +01:00
committed by GitHub
parent d512aa5b21
commit bc6db72df0

View File

@ -502,7 +502,7 @@ public class ServerControl implements ApplicationListener{
}
for(Item item : content.items()){
state.teams.cores(team).first().items.set(item, state.teams.cores(team).first().block.itemCapacity);
state.teams.cores(team).first().items.set(item, state.teams.cores(team).first().storageCapacity);
}
info("Core filled.");