Small brain
This commit is contained in:
parent
51243f0981
commit
e81d0a0b1b
@ -42,18 +42,6 @@ public enum PathingBlockType {
|
||||
}
|
||||
|
||||
public static PathingBlockType fromBits(boolean b1, boolean b2) {
|
||||
if (b1) {
|
||||
if (b2) {
|
||||
return PathingBlockType.SOLID;
|
||||
} else {
|
||||
return PathingBlockType.AVOID;
|
||||
}
|
||||
} else {
|
||||
if (b2) {
|
||||
return PathingBlockType.WATER;
|
||||
} else {
|
||||
return PathingBlockType.AIR;
|
||||
}
|
||||
}
|
||||
return b1 ? b2 ? SOLID : AVOID : b2 ? WATER : AIR;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user