Rule for Serpulo core unloaders taking items from the core
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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){
|
||||
|
||||
Reference in New Issue
Block a user