mirror of
https://github.com/YouHaveTrouble/NotJustNameplates.git
synced 2026-05-11 22:16:57 +00:00
add end gateway to portal check
This commit is contained in:
+5
-1
@@ -87,7 +87,11 @@ public class TeamManagementListener implements Listener {
|
||||
boolean inPortal = false;
|
||||
for (Location loc : new Location[]{loc1, loc2, loc3, loc4}) {
|
||||
Block block = loc.getBlock();
|
||||
if (block.getType() == Material.NETHER_PORTAL || block.getType() == Material.END_PORTAL) {
|
||||
if (
|
||||
block.getType() == Material.NETHER_PORTAL
|
||||
|| block.getType() == Material.END_PORTAL
|
||||
|| block.getType() == Material.END_GATEWAY
|
||||
) {
|
||||
inPortal = true;
|
||||
break;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user