mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-26 06:22:17 -08:00
Fixed large units fitting into deconstructors
This commit is contained in:
parent
717a620ff4
commit
f03d3d89f3
1 changed files with 1 additions and 1 deletions
|
|
@ -87,7 +87,7 @@ public class PayloadDeconstructor extends PayloadBlock{
|
|||
|
||||
@Override
|
||||
public boolean acceptUnitPayload(Unit unit){
|
||||
return payload == null && !unit.spawnedByCore;
|
||||
return payload == null && !unit.spawnedByCore && unit.type.getTotalRequirements().length > 0 && unit.hitSize / tilesize <= maxPayloadSize;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue