Skip to content

Commit

Permalink
fix: fix ll vtable
Browse files Browse the repository at this point in the history
  • Loading branch information
OEOTYAN committed Aug 25, 2024
1 parent 95479b2 commit 01634ed
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/bugfix/HopperBugsFix.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,11 @@ LL_TYPE_INSTANCE_HOOK(

for (int x = minChunk.x; x <= maxChunk.x; x++)
for (int z = minChunk.z; z <= maxChunk.z; z++) {
auto* chunk = blockSource.getChunk({x, z});
auto* chunk = ll::memory::virtualCall<LevelChunk*, ChunkPos const&>(
&blockSource,
39,
ChunkPos{x, z}
);
if (!chunk) {
continue;
}
Expand Down

0 comments on commit 01634ed

Please sign in to comment.