mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-10-02 03:00:29 +03:00
Fixed #11959
This commit is contained in:
@@ -144,7 +144,7 @@ public class Unloader extends Block{
|
||||
|
||||
//partial check
|
||||
boolean canLoad = !(other instanceof CoreBuild || other instanceof StorageBuild);
|
||||
boolean canUnload = other.canUnload() && (allowCoreUnload || canLoad) && other.items != null;
|
||||
boolean canUnload = other.canUnload() && (allowCoreUnload || canLoad || (other instanceof StorageBuild b && b.linkedCore == null)) && other.items != null;
|
||||
|
||||
if(canLoad || canUnload){ //avoid blocks that can neither give nor receive items
|
||||
var pb = Pools.obtain(ContainerStat.class, ContainerStat::new);
|
||||
|
||||
Reference in New Issue
Block a user