mirror of
https://github.com/quizhizhe/LiteLoaderBDS-1.16.40.git
synced 2025-06-03 04:23:39 +00:00
Fix CompoundTag::fromBlock(Block* block)
This commit is contained in:
parent
e277252a1d
commit
0070831a52
@ -142,12 +142,12 @@ void CompoundTag::setItemStack(ItemStack* item) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
std::unique_ptr<CompoundTag> CompoundTag::fromBlock(Block* block) {
|
std::unique_ptr<CompoundTag> 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();
|
return tag->clone();
|
||||||
}
|
}
|
||||||
|
|
||||||
void CompoundTag::setBlock(Block* blk) {
|
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);
|
tag->deepCopy(*this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user