File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -42,7 +42,7 @@ Local<Value> McClass::getStructure(const Arguments& args) {
4242
4343 auto structure = StructureTemplate::create (
4444 " " ,
45- ll::service::getLevel ()->getDimension (pos1->getDimensionId ())->getBlockSourceFromMainChunkSource (),
45+ ll::service::getLevel ()->getDimension (pos1->getDimensionId ()). lock () ->getBlockSourceFromMainChunkSource (),
4646 BoundingBox (pos1->getBlockPos (), pos2->getBlockPos ()),
4747 ignoreBlocks,
4848 ignoreEntities
@@ -87,7 +87,7 @@ Local<Value> McClass::setStructure(const Arguments& args) {
8787 IntPos* pos = IntPos::extractPos (args[1 ]);
8888 auto structure = StructureTemplate::create (" " , *nbt);
8989 structure->placeInWorld (
90- ll::service::getLevel ()->getDimension (pos->getDimensionId ())->getBlockSourceFromMainChunkSource (),
90+ ll::service::getLevel ()->getDimension (pos->getDimensionId ()). lock () ->getBlockSourceFromMainChunkSource (),
9191 pos->getBlockPos () + BlockPos (0 , 1 , 0 ),
9292 mirror,
9393 rotation
You can’t perform that action at this time.
0 commit comments