fix entity paste location offsets

This commit is contained in:
wea_ondara 2020-07-26 19:05:32 +02:00
parent b411ea9af4
commit f24ad69f8f
2 changed files with 3 additions and 3 deletions

View File

@ -124,9 +124,9 @@ public interface IChunkExtent<T extends IChunk> extends Extent {
pos = new ListTag(DoubleTag.class, posList); pos = new ListTag(DoubleTag.class, posList);
map.put("Pos", pos); 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(1, new DoubleTag(location.getY()));
posList.set(2, new DoubleTag(location.getZ() + 0.5)); posList.set(2, new DoubleTag(location.getZ()));
//set new uuid //set new uuid
UUID newuuid = UUID.randomUUID(); UUID newuuid = UUID.randomUUID();

View File

@ -323,7 +323,7 @@ public class BlockArrayClipboard implements Clipboard {
private final float yaw, pitch; private final float yaw, pitch;
public ClipboardEntity(Location loc, BaseEntity entity) { 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) { public ClipboardEntity(Clipboard clipboard, double x, double y, double z, float yaw, float pitch, BaseEntity entity) {