mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 01:37:37 +00:00
fix entity paste location offsets
This commit is contained in:
parent
b411ea9af4
commit
f24ad69f8f
@ -124,9 +124,9 @@ public interface IChunkExtent<T extends IChunk> extends Extent {
|
||||
pos = new ListTag(DoubleTag.class, posList);
|
||||
map.put("Pos", pos);
|
||||
}
|
||||
posList.set(0, new DoubleTag(location.getX() + 0.5));
|
||||
posList.set(0, new DoubleTag(location.getX()));
|
||||
posList.set(1, new DoubleTag(location.getY()));
|
||||
posList.set(2, new DoubleTag(location.getZ() + 0.5));
|
||||
posList.set(2, new DoubleTag(location.getZ()));
|
||||
|
||||
//set new uuid
|
||||
UUID newuuid = UUID.randomUUID();
|
||||
|
@ -323,7 +323,7 @@ public class BlockArrayClipboard implements Clipboard {
|
||||
private final float yaw, pitch;
|
||||
|
||||
public ClipboardEntity(Location loc, BaseEntity entity) {
|
||||
this((Clipboard) loc.getExtent(), loc.getBlockX(), loc.getBlockY(), loc.getBlockZ(), loc.getYaw(), loc.getPitch(), entity);
|
||||
this((Clipboard) loc.getExtent(), loc.getX(), loc.getY(), loc.getZ(), loc.getYaw(), loc.getPitch(), entity);
|
||||
}
|
||||
|
||||
public ClipboardEntity(Clipboard clipboard, double x, double y, double z, float yaw, float pitch, BaseEntity entity) {
|
||||
|
Loading…
Reference in New Issue
Block a user