Ignores the type of air when verifying a stargate's opening

This commit is contained in:
Kristian Knarvik 2022-01-27 00:58:42 +01:00
parent 29fdc8f849
commit 62952611b8

View File

@ -235,7 +235,7 @@ public class Gate {
Material type = topLeft.getRelativeLocation(entranceVector, yaw).getType();
//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;
}