From e3b390fe543f6f1407a64767ac566eabab328777 Mon Sep 17 00:00:00 2001 From: Martmists Date: Thu, 5 Mar 2020 19:35:58 +0100 Subject: [PATCH] Make it compile --- .../martmists/ynet/blockentities/ControllerBlockEntity.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/martmists/ynet/blockentities/ControllerBlockEntity.java b/src/main/java/com/martmists/ynet/blockentities/ControllerBlockEntity.java index 34626b9..70af954 100644 --- a/src/main/java/com/martmists/ynet/blockentities/ControllerBlockEntity.java +++ b/src/main/java/com/martmists/ynet/blockentities/ControllerBlockEntity.java @@ -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 toSearch = new ArrayDeque<>(pos); - List searched = new ArrayList<>(pos); + ArrayDeque toSearch = new ArrayDeque(); + toSearch.push(pos); + List searched = new ArrayList<>(); + searched.add(pos); List providers = new ArrayList<>(); while (!toSearch.isEmpty()){ BlockPos p = toSearch.removeFirst();