Powah!

Powah!

19M Downloads

checkEnergyTile() is executed twice for non cable tiles

MatthiasMann opened this issue ยท 1 comments

commented

return new boolean[]{world.getBlockState(pos.offset(direction)).getBlock() == this || checkEnergyTile(world, pos, direction), checkEnergyTile(world, pos, direction)};

Should probably be stored in a local variable. Or maybe replace the boolean[] with an enum (Cable, Tile, Nothing)?

commented

First check is for cable connection (cable model) and the 2nd to create the tile entity if necessary.