make storageblock instantiable

This commit is contained in:
DeltaNedas 2020-10-10 11:16:04 +01:00
parent 5a31d419fc
commit fd71e159d3
2 changed files with 3 additions and 4 deletions

View File

@ -1358,14 +1358,12 @@ public class Blocks implements ContentList{
requirements(Category.effect, with(Items.titanium, 250, Items.thorium, 125));
size = 3;
itemCapacity = 1000;
group = BlockGroup.storage;
}};
container = new StorageBlock("container"){{
requirements(Category.effect, with(Items.titanium, 100));
size = 2;
itemCapacity = 300;
group = BlockGroup.storage;
}};
unloader = new Unloader("unloader"){{

View File

@ -5,15 +5,16 @@ import arc.util.*;
import mindustry.gen.*;
import mindustry.type.*;
import mindustry.world.*;
import mindustry.world.meta.*;
public abstract class StorageBlock extends Block{
public class StorageBlock extends Block{
public StorageBlock(String name){
super(name);
hasItems = true;
solid = true;
update = false;
destructible = true;
group = BlockGroup.storage;
}
@Override