Sets the always on option to true for bungee portals and removes some unnecessary checks
This commit is contained in:
@ -30,12 +30,12 @@ public final class MaterialHelper {
|
||||
|
||||
/**
|
||||
* Checks whether the given material is a container
|
||||
*
|
||||
*
|
||||
* @param material <p>The material to check</p>
|
||||
* @return <p>True if the material is a container</p>
|
||||
*/
|
||||
public static boolean isContainer(Material material) {
|
||||
return Tag.SHULKER_BOXES.isTagged(material) || material == Material.CHEST ||
|
||||
return Tag.SHULKER_BOXES.isTagged(material) || material == Material.CHEST ||
|
||||
material == Material.TRAPPED_CHEST || material == Material.ENDER_CHEST;
|
||||
}
|
||||
|
||||
|
@ -27,7 +27,7 @@ public final class PermissionHelper {
|
||||
Portal destination = portal.getPortalActivator().getDestination();
|
||||
|
||||
//For an always open portal, no action is necessary
|
||||
if (portal.getOptions().isAlwaysOn() || portal.getOptions().isRandom() || portal.getOptions().isBungee()) {
|
||||
if (portal.getOptions().isAlwaysOn()) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user