3
0
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:
Pierre Maurice Schwang 2024-06-10 21:17:27 +02:00
Ursprung c35cd6e816
Commit 7905ee0e86
Es konnte kein GPG-Schlüssel zu dieser Signatur gefunden werden
GPG-Schlüssel-ID: 37E613079F3E5BB9

Datei anzeigen

@ -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();