bergerkiller/NoLagg — Issue #11: Multiverse-NetherPortals issue
Author: tomikcz
Created: 2012-01-26 02:11:13+00:00
State: open

I have issue with multiverse nether portals (mvnp)
with nolagg mvnp sometimes port players to the_end instead nether when player go to nether portal.
there are mvnp messages from serverlog.

Portal working properly, sending me to the nether:

...
02:13:22 [INFO] Location{world=CraftWorld{name=worldp},x=-910.2279994794009,y=35.0,z=-488.30000001192093,pitch=27.599977,yaw=-121.3545} => PORTAL
...

Same portal not working properly, sending me to the end:

...
02:15:01 [INFO] Location{world=CraftWorld{name=worldp},x=-910.1673466115603,y=35.0,z=-488.30000001192093,pitch=29.849974,yaw=-202.20436} => AIR
...

there is part of mvnp source which is executed when player go to portal:

...
public void onPlayerPortal(PlayerPortalEvent event) {
Location currentLocation = event.getFrom().clone();
String currentWorld = currentLocation.getWorld().getName();

PortalType type = PortalType.END;
System.out.println(event.getFrom() + " => " + event.getFrom().getBlock().getType());
if (event.getFrom().getBlock().getType() == Material.PORTAL) {
type = PortalType.NETHER;
}

String linkedWorld = this.plugin.getWorldLink(currentWorld, type);
....

It seems that noLagg sends bad blocktype to MVNP because when is nolagg disabled, everything work properly. I have this issue with all builds dev-cb 1.1 and also for 1.1 recomended build.