Browse Source

Make it compile

master
Martmists 2 years ago
parent
commit
e3b390fe54
  1. 6
      src/main/java/com/martmists/ynet/blockentities/ControllerBlockEntity.java

6
src/main/java/com/martmists/ynet/blockentities/ControllerBlockEntity.java

@ -25,8 +25,10 @@ public class ControllerBlockEntity extends BlockEntity implements Tickable { @@ -25,8 +25,10 @@ public class ControllerBlockEntity extends BlockEntity implements Tickable {
// - Add a way to get input/output blocks from said channel
private Block[] getConnectedBlocks() {
ArrayDeque<BlockPos> toSearch = new ArrayDeque<>(pos);
List<BlockPos> searched = new ArrayList<>(pos);
ArrayDeque<BlockPos> toSearch = new ArrayDeque<BlockPos>();
toSearch.push(pos);
List<BlockPos> searched = new ArrayList<>();
searched.add(pos);
List<BlockPos> providers = new ArrayList<>();
while (!toSearch.isEmpty()){
BlockPos p = toSearch.removeFirst();

Loading…
Cancel
Save