Add comments

This commit is contained in:
Patrick 'Quezler' Mounier
2019-11-05 07:29:48 +01:00
parent 3c66300721
commit 645ff56096

View File

@@ -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;
}