Finished updating world locations

This commit is contained in:
sekwah41 2018-02-02 09:33:38 +00:00 committed by Sekwah
parent 9407a7329b
commit dd08206dd4
2 changed files with 2 additions and 2 deletions

View File

@ -32,7 +32,7 @@ public class PlayerContainer {
public PlayerLocation getLoc() {
Location loc = this.player.getLocation();
return new PlayerLocation(loc.getX(), loc.getY(), loc.getZ());
return new PlayerLocation(loc.getWorld().getName(), loc.getX(), loc.getY(), loc.getZ());
}
public double getEyeHeight() {

View File

@ -31,7 +31,7 @@ public class Listeners implements Listener {
Location blockloc = event.getClickedBlock().getLocation();
this.coreListeners.playerInteractWithBlock(new PlayerContainer(event.getPlayer()), event.getMaterial().toString(),
event.getItem().getItemMeta().getDisplayName(),
new PortalLocation(blockloc.getBlockX(), blockloc.getBlockY(), blockloc.getBlockZ()),
new PortalLocation(blockloc.getWorld().getName(), blockloc.getBlockX(), blockloc.getBlockY(), blockloc.getBlockZ()),
event.getAction() == Action.LEFT_CLICK_BLOCK);
}
}