diff --git a/LiteLoader/Kernel/NBT/CompoundTagAPI.cpp b/LiteLoader/Kernel/NBT/CompoundTagAPI.cpp index 2b827b5..c0615d3 100644 --- a/LiteLoader/Kernel/NBT/CompoundTagAPI.cpp +++ b/LiteLoader/Kernel/NBT/CompoundTagAPI.cpp @@ -142,12 +142,12 @@ void CompoundTag::setItemStack(ItemStack* item) { } std::unique_ptr CompoundTag::fromBlock(Block* block) { - auto tag = (CompoundTag*)((uintptr_t)block + 120); //dAccess Block::Block + auto tag = (CompoundTag*)((uintptr_t)block + 24); //dAccess Block::Block return tag->clone(); } void CompoundTag::setBlock(Block* blk) { - auto tag = (CompoundTag*)((uintptr_t)blk + 120);//dAccess Block::Block + auto tag = (CompoundTag*)((uintptr_t)blk + 24);//dAccess Block::Block tag->deepCopy(*this); }