mirror of
https://github.com/Anuken/Mindustry.git
synced 2026-01-06 17:23:32 -08:00
Experimental: block loader/unloaders
This commit is contained in:
parent
0e59a22cbe
commit
1ae9d04f47
35 changed files with 2700 additions and 2231 deletions
|
|
@ -88,11 +88,7 @@ public class PowerTestFixture{
|
|||
|
||||
// Simulate the "changed" method. Calling it through reflections would require half the game to be initialized.
|
||||
tile.entity = block.newEntity().init(tile, Team.sharded, false);
|
||||
tile.entity.cons(new ConsumeModule(tile.entity));
|
||||
if(block.hasItems) tile.entity.items(new ItemModule());
|
||||
if(block.hasLiquids) tile.entity.liquids(new LiquidModule());
|
||||
if(block.hasPower){
|
||||
tile.entity.power(new PowerModule());
|
||||
tile.entity.power().graph = new PowerGraph(){
|
||||
//assume there's always something consuming power
|
||||
@Override
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue