Fixed cores being placeable on nothing

This commit is contained in:
Anuken
2020-09-27 23:00:38 -04:00
parent 482ec4b43c
commit 078a68a07d
3 changed files with 8 additions and 5 deletions

View File

@@ -101,7 +101,7 @@ public class CoreBlock extends StorageBlock{
CoreBuild core = team.core();
//must have all requirements
if(core == null || (!state.rules.infiniteResources && !core.items.has(requirements))) return false;
return canReplace(tile.block());
return tile.block() instanceof CoreBlock && size > tile.block().size;
}
@Override