Skip to content
This repository was archived by the owner on Apr 7, 2021. It is now read-only.

Commit

Permalink
fix tile entity NBT problem
Browse files Browse the repository at this point in the history
  • Loading branch information
DefinitlyEvil committed Dec 21, 2017
1 parent 3296e29 commit d0f503f
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@
import com.github.steveice10.mc.protocol.data.game.world.block.BlockState;
import com.github.steveice10.mc.protocol.packet.ingame.server.world.ServerChunkDataPacket;
import java.io.IOException;
import java.nio.ByteOrder;
import java.util.logging.Level;
import java.util.logging.Logger;
import org.dragonet.proxy.data.nbt.NBTIO;
Expand Down Expand Up @@ -100,7 +101,7 @@ private void processChunkSection(Column pc, ChunkData pe) {
pe.blockEntities = new byte[pc.getTileEntities().length];
for (int i = 0; i < pc.getTileEntities().length; i++) {
org.dragonet.proxy.data.nbt.tag.CompoundTag peTag = ItemBlockTranslator.translateBlockEntityToPE(pc.getTileEntities()[i]);
pe.blockEntities = NBTIO.write(peTag);
pe.blockEntities = NBTIO.write(peTag, ByteOrder.LITTLE_ENDIAN);
}
} catch (IOException ex) {
Logger.getLogger(PCMultiChunkDataPacketTranslator.class.getName()).log(Level.SEVERE, null, ex);
Expand Down

0 comments on commit d0f503f

Please sign in to comment.