mirror of
https://github.com/IntellectualSites/PlotSquared.git
synced 2025-06-27 11:14:43 +02:00
Clean up PlotId
This commit is contained in:
@ -152,16 +152,16 @@ public final class ReplicatingEntityWrapper extends EntityWrapper {
|
||||
this.stack = item.getItemStack();
|
||||
return;
|
||||
case "ITEM_FRAME":
|
||||
this.x = Math.floor(this.x);
|
||||
this.y = Math.floor(this.y);
|
||||
this.x = Math.floor(this.getX());
|
||||
this.y = Math.floor(this.getY());
|
||||
this.z = Math.floor(this.z);
|
||||
ItemFrame itemFrame = (ItemFrame) entity;
|
||||
this.dataByte = getOrdinal(Rotation.values(), itemFrame.getRotation());
|
||||
this.stack = itemFrame.getItem().clone();
|
||||
return;
|
||||
case "PAINTING":
|
||||
this.x = Math.floor(this.x);
|
||||
this.y = Math.floor(this.y);
|
||||
this.x = Math.floor(this.getX());
|
||||
this.y = Math.floor(this.getY());
|
||||
this.z = Math.floor(this.z);
|
||||
Painting painting = (Painting) entity;
|
||||
Art art = painting.getArt();
|
||||
@ -407,8 +407,8 @@ public final class ReplicatingEntityWrapper extends EntityWrapper {
|
||||
this.lived.leashed = lived.isLeashed();
|
||||
if (this.lived.leashed) {
|
||||
Location location = lived.getLeashHolder().getLocation();
|
||||
this.lived.leashX = (short) (this.x - location.getBlockX());
|
||||
this.lived.leashY = (short) (this.y - location.getBlockY());
|
||||
this.lived.leashX = (short) (this.getX() - location.getBlockX());
|
||||
this.lived.leashY = (short) (this.getY() - location.getBlockY());
|
||||
this.lived.leashZ = (short) (this.z - location.getBlockZ());
|
||||
}
|
||||
EntityEquipment equipment = lived.getEquipment();
|
||||
@ -460,7 +460,7 @@ public final class ReplicatingEntityWrapper extends EntityWrapper {
|
||||
}
|
||||
|
||||
@Override public Entity spawn(World world, int xOffset, int zOffset) {
|
||||
Location location = new Location(world, this.x + xOffset, this.y, this.z + zOffset);
|
||||
Location location = new Location(world, this.getX() + xOffset, this.getY(), this.z + zOffset);
|
||||
location.setYaw(this.yaw);
|
||||
location.setPitch(this.pitch);
|
||||
if (!this.getType().isSpawnable()) {
|
||||
|
@ -67,8 +67,8 @@ public class TeleportEntityWrapper extends EntityWrapper {
|
||||
|
||||
// To account for offsets in the chunk manager
|
||||
this.oldLocation = oldLocation.clone();
|
||||
this.oldLocation.setX(this.x);
|
||||
this.oldLocation.setY(this.y);
|
||||
this.oldLocation.setX(this.getX());
|
||||
this.oldLocation.setY(this.getY());
|
||||
this.oldLocation.setZ(this.z);
|
||||
|
||||
this.gravityOld = this.getEntity().hasGravity();
|
||||
|
Reference in New Issue
Block a user