mirror of
https://github.com/SquidDev-CC/CC-Tweaked
synced 2025-12-01 20:08:05 +00:00
fix: turtle read write nbt
This commit is contained in:
@@ -309,7 +309,6 @@ public class TileTurtle extends TileComputerBase
|
||||
@Override
|
||||
public NbtCompound writeNbt( @Nonnull NbtCompound nbt )
|
||||
{
|
||||
super.readNbt( nbt );
|
||||
// Write inventory
|
||||
NbtList nbttaglist = new NbtList();
|
||||
for( int i = 0; i < INVENTORY_SIZE; i++ )
|
||||
@@ -327,7 +326,7 @@ public class TileTurtle extends TileComputerBase
|
||||
// Write brain
|
||||
nbt = brain.writeToNBT( nbt );
|
||||
|
||||
return nbt;
|
||||
return super.writeNbt( nbt );
|
||||
}
|
||||
|
||||
// IDirectionalTile
|
||||
@@ -335,7 +334,7 @@ public class TileTurtle extends TileComputerBase
|
||||
@Override
|
||||
public void readNbt( @Nonnull NbtCompound nbt )
|
||||
{
|
||||
super.writeNbt( nbt );
|
||||
super.readNbt( nbt );
|
||||
|
||||
// Read inventory
|
||||
NbtList nbttaglist = nbt.getList( "Items", NBTUtil.TAG_COMPOUND );
|
||||
|
||||
Reference in New Issue
Block a user