Skip to content

Commit 69bef4c

Browse files
fixed deadlock and #include error
1 parent a91347a commit 69bef4c

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/world/view_point.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ void ViewPoint::render(Renderer &renderer, Matrix worldToCamera, WorldLockManage
355355
for(chunkPosition.z = minChunkPosition.z; chunkPosition.z <= maxChunkPosition.z; chunkPosition.z += BlockChunk::chunkSizeZ)
356356
{
357357
BlockIterator cbi = world.getBlockIterator(chunkPosition);
358+
lock_manager.clear();
358359
std::unique_lock<std::recursive_mutex> lockChunk(cbi.chunk->chunkVariables.entityListLock);
359360
for(WrappedEntity &entity : cbi.chunk->chunkVariables.entityList)
360361
{

src/world/world.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
#include "generate/decorator.h"
4343
#include "util/decorator_cache.h"
4444
#include "util/wood_descriptor.h"
45-
#include "item/builtin/tools/stone_toolset.h"
45+
#include "item/builtin/tools/mineral_toolsets.h"
4646
#include "item/builtin/minerals.h"
4747
#include "item/builtin/ores.h"
4848
#include "item/builtin/cobblestone.h"

0 commit comments

Comments
 (0)