Rule for Serpulo core unloaders taking items from the core

This commit is contained in:
Anuken
2025-12-21 16:01:27 -05:00
parent f64279fb75
commit 861678fd71
6 changed files with 24 additions and 0 deletions

View File

@@ -276,6 +276,11 @@ public class CoreBlock extends StorageBlock{
commandPos = target;
}
@Override
public boolean canUnload(){
return block.unloadable && state.rules.allowCoreUnloaders;
}
@Override
public void draw(){
//draw thrusters when just landed

View File

@@ -53,6 +53,11 @@ public class StorageBlock extends Block{
return linkedCore != null ? linkedCore.acceptItem(source, item) : items.get(item) < getMaximumAccepted(item);
}
@Override
public boolean canUnload(){
return linkedCore == null ? super.canUnload() : linkedCore.canUnload();
}
@Override
public void handleItem(Building source, Item item){
if(linkedCore != null){