Removed portal overlap because it was imperfect and one of the cheks was also causing an issue. This was better than fixing because portal regions may overlap with different triggerblocks

This commit is contained in:
sekwah 2018-05-21 21:02:01 +01:00
parent 811079b901
commit ca72d9a8df
3 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
main: com.sekwah.advancedportals.AdvancedPortalsPlugin
name: AdvancedPortals
version: 0.0.39
version: 0.0.40
author: sekwah41
description: An advanced portals plugin for bukkit.
commands:

View File

@ -16,7 +16,7 @@
<url>https://hub.spigotmc.org/nexus/content/repositories/snapshots/</url>
</repository>
</repositories>
<version>0.0.39-snapshot</version>
<version>0.0.40-snapshot</version>
<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.7</maven.compiler.source>

View File

@ -179,10 +179,10 @@ public class Portal {
Location checkpos1 = new Location(pos1.getWorld(), HighX, HighY, HighZ);
Location checkpos2 = new Location(pos2.getWorld(), LowX, LowY, LowZ);
if (checkPortalOverlap(checkpos1, checkpos2)) {
/*if (checkPortalOverlap(checkpos1, checkpos2)) {
plugin.getLogger().log(Level.WARNING, "portals must not overlap!");
return "\u00A7cPortal creation error, portals must not overlap!";
}
}*/
portalData.getConfig().set(name + ".world", pos1.getWorld().getName());