Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-19 17:30:08 +01:00
fix/chore: write pos as doubles
Dieser Commit ist enthalten in:
Ursprung
c35cd6e816
Commit
7905ee0e86
@ -184,11 +184,11 @@ public class FastSchematicWriterV3 implements ClipboardWriter {
|
|||||||
out.writeNamedTag("Id", state.getType().id());
|
out.writeNamedTag("Id", state.getType().id());
|
||||||
|
|
||||||
out.writeNamedTagName("Pos", NBTConstants.TYPE_LIST);
|
out.writeNamedTagName("Pos", NBTConstants.TYPE_LIST);
|
||||||
out.write(NBTConstants.TYPE_FLOAT);
|
out.write(NBTConstants.TYPE_DOUBLE);
|
||||||
out.writeInt(3);
|
out.writeInt(3);
|
||||||
out.writeFloat((float) entity.getLocation().x() - clipboard.getMinimumPoint().x());
|
out.writeDouble(entity.getLocation().x() - clipboard.getMinimumPoint().x());
|
||||||
out.writeFloat((float) entity.getLocation().y() - clipboard.getMinimumPoint().y());
|
out.writeDouble(entity.getLocation().y() - clipboard.getMinimumPoint().y());
|
||||||
out.writeFloat((float) entity.getLocation().z() - clipboard.getMinimumPoint().z());
|
out.writeDouble(entity.getLocation().z() - clipboard.getMinimumPoint().z());
|
||||||
|
|
||||||
out.writeLazyCompoundTag("Data", data -> {
|
out.writeLazyCompoundTag("Data", data -> {
|
||||||
CompoundTag nbt = state.getNbtData();
|
CompoundTag nbt = state.getNbtData();
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren