Add items back to reconstructor if it overwrote itself
This commit is contained in:
committed by
GitHub
parent
430538ea7e
commit
0dd95e736d
@@ -114,6 +114,13 @@ public class Reconstructor extends UnitBlock{
|
||||
return capacities[item.id];
|
||||
}
|
||||
|
||||
@Override
|
||||
public void overwrote(Seq<Building> builds){
|
||||
if(builds.first().block == block){
|
||||
items.add(builds.first().items);
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
public void draw(){
|
||||
Draw.rect(region, x, y);
|
||||
|
||||
Reference in New Issue
Block a user