Skip to content

Commit e0f0379

Browse files
authored
Merge pull request #723 from MihailRis/fixes
0.30.5 patch
2 parents 57e1495 + 719ba6e commit e0f0379

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

src/content/loading/BlockLoader.cpp

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,5 +247,7 @@ template<> void ContentUnitLoader<Block>::loadUnit(
247247
if (def.hidden && def.pickingItem == def.name + BLOCK_ITEM_SUFFIX) {
248248
def.pickingItem = CORE_EMPTY;
249249
}
250-
def.scriptFile = pack.id + ":scripts/" + def.scriptName + ".lua";
250+
if (root.has("script-name") || def.scriptFile.empty()) {
251+
def.scriptFile = pack.id + ":scripts/" + def.scriptName + ".lua";
252+
}
251253
}

src/voxels/blocks_agent.cpp

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -160,12 +160,6 @@ static void initialize_block(
160160
block_register_events.push_back(BlockRegisterEvent {
161161
static_cast<uint8_t>(bits | 1), def.rt.id, {x, y, z}
162162
});
163-
164-
if (def.rt.funcsset.onblocktick) {
165-
block_register_events.push_back(BlockRegisterEvent {
166-
bits, def.rt.id, {x, y, z}
167-
});
168-
}
169163
}
170164

171165
template <class Storage>

0 commit comments

Comments
 (0)