Add comments
This commit is contained in:
@@ -543,6 +543,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
||||
if(i[0]++ == 0 || i[0] == lineRequests.size){
|
||||
// beginning & end should always be placed
|
||||
}else{
|
||||
// check with how many powernodes the *next* tile will overlap
|
||||
int overlaps = 0;
|
||||
for(int j = 0; j < i[0]; j++){
|
||||
if (((PowerNode) req.block).overlaps(lineRequests.get(i[0]).tile(), lineRequests.get(j).tile()) && lineRequests.get(j).block instanceof PowerNode){
|
||||
@@ -550,6 +551,7 @@ public abstract class InputHandler implements InputProcessor, GestureListener{
|
||||
}
|
||||
}
|
||||
|
||||
// if its more than two it can bridge the gap
|
||||
if(overlaps > 1){
|
||||
req.block = Blocks.air;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user