master #9

Merged
NO11 merged 42 commits from VoxeLibre/VoxeLibre:master into master 2021-10-09 23:19:44 +02:00
1 changed files with 4 additions and 0 deletions
Showing only changes of commit 0584d16569 - Show all commits

View File

@ -156,6 +156,10 @@ lightning.register_on_strike(function(pos, pos2, objects)
-- damage nearby objects, transform mobs
for _, obj in pairs(objects) do
local lua = obj:get_luaentity()
if lua and lua._on_strike then
lua._on_strike(lua, pos, pos2, objects)
end
-- remove this when mob API is done
if lua and lua.name == "mobs_mc:pig" then
mcl_util.replace_mob(obj, "mobs_mc:pigman")
elseif lua and lua.name == "mobs_mc:mooshroom" then