Ignores the type of air when verifying a stargate's opening
This commit is contained in:
parent
29fdc8f849
commit
62952611b8
@ -235,7 +235,7 @@ public class Gate {
|
|||||||
Material type = topLeft.getRelativeLocation(entranceVector, yaw).getType();
|
Material type = topLeft.getRelativeLocation(entranceVector, yaw).getType();
|
||||||
|
|
||||||
//Ignore entrance if it's air or water, and we're creating a new gate
|
//Ignore entrance if it's air or water, and we're creating a new gate
|
||||||
if (onCreate && (type == Material.AIR || type == Material.WATER)) {
|
if (onCreate && (type.isAir() || type == Material.WATER)) {
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user