mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-22 09:17:39 +00:00
Revert history writing using LinBinaryIO (#2919)
This commit is contained in:
parent
789907e56b
commit
71b99f9b05
@ -22,12 +22,9 @@ import com.sk89q.worldedit.regions.Region;
|
|||||||
import com.sk89q.worldedit.world.World;
|
import com.sk89q.worldedit.world.World;
|
||||||
import com.sk89q.worldedit.world.biome.BiomeType;
|
import com.sk89q.worldedit.world.biome.BiomeType;
|
||||||
import com.sk89q.worldedit.world.block.BlockTypes;
|
import com.sk89q.worldedit.world.block.BlockTypes;
|
||||||
import org.enginehub.linbus.stream.LinBinaryIO;
|
|
||||||
import org.enginehub.linbus.tree.LinRootEntry;
|
|
||||||
import org.jetbrains.annotations.NotNull;
|
import org.jetbrains.annotations.NotNull;
|
||||||
import org.jetbrains.annotations.Nullable;
|
import org.jetbrains.annotations.Nullable;
|
||||||
|
|
||||||
import java.io.DataOutput;
|
|
||||||
import java.io.EOFException;
|
import java.io.EOFException;
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.io.InputStream;
|
import java.io.InputStream;
|
||||||
@ -405,8 +402,8 @@ public abstract class FaweStreamChangeSet extends AbstractChangeSet {
|
|||||||
public void addTileCreate(final FaweCompoundTag tag) {
|
public void addTileCreate(final FaweCompoundTag tag) {
|
||||||
blockSize++;
|
blockSize++;
|
||||||
try {
|
try {
|
||||||
DataOutput nbtos = getTileCreateOS();
|
NBTOutputStream nbtos = getTileCreateOS();
|
||||||
LinBinaryIO.write(nbtos, new LinRootEntry("tile-create", tag.linTag()));
|
nbtos.writeTag(new CompoundTag(tag.linTag()));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
@ -416,8 +413,8 @@ public abstract class FaweStreamChangeSet extends AbstractChangeSet {
|
|||||||
public void addTileRemove(final FaweCompoundTag tag) {
|
public void addTileRemove(final FaweCompoundTag tag) {
|
||||||
blockSize++;
|
blockSize++;
|
||||||
try {
|
try {
|
||||||
DataOutput nbtos = getTileRemoveOS();
|
NBTOutputStream nbtos = getTileRemoveOS();
|
||||||
LinBinaryIO.write(nbtos, new LinRootEntry("tile-remove", tag.linTag()));
|
nbtos.writeTag(new CompoundTag(tag.linTag()));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
@ -427,8 +424,8 @@ public abstract class FaweStreamChangeSet extends AbstractChangeSet {
|
|||||||
public void addEntityRemove(final FaweCompoundTag tag) {
|
public void addEntityRemove(final FaweCompoundTag tag) {
|
||||||
blockSize++;
|
blockSize++;
|
||||||
try {
|
try {
|
||||||
DataOutput nbtos = getEntityRemoveOS();
|
NBTOutputStream nbtos = getEntityRemoveOS();
|
||||||
LinBinaryIO.write(nbtos, new LinRootEntry("entity-remove", tag.linTag()));
|
nbtos.writeTag(new CompoundTag(tag.linTag()));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
@ -438,8 +435,8 @@ public abstract class FaweStreamChangeSet extends AbstractChangeSet {
|
|||||||
public void addEntityCreate(final FaweCompoundTag tag) {
|
public void addEntityCreate(final FaweCompoundTag tag) {
|
||||||
blockSize++;
|
blockSize++;
|
||||||
try {
|
try {
|
||||||
DataOutput nbtos = getEntityCreateOS();
|
NBTOutputStream nbtos = getEntityCreateOS();
|
||||||
LinBinaryIO.write(nbtos, new LinRootEntry("entity-create", tag.linTag()));
|
nbtos.writeTag(new CompoundTag(tag.linTag()));
|
||||||
} catch (IOException e) {
|
} catch (IOException e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user