mirror of
https://github.com/sekwah41/Advanced-Portals.git
synced 2024-11-22 10:36:17 +01:00
Finished updating world locations
This commit is contained in:
parent
9407a7329b
commit
dd08206dd4
@ -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() {
|
||||
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user