mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-17 08:31:08 +01:00
Fixed wither skulls
- wither skulls now hit players again - wither skulls (strong version) don't cause a crash anymore
This commit is contained in:
parent
ef60cd8559
commit
f594473276
1 changed files with 3 additions and 2 deletions
|
@ -468,7 +468,7 @@ mcl_mobs.register_arrow("mobs_mc:wither_skull", {
|
||||||
on_punch = function(self) end,
|
on_punch = function(self) end,
|
||||||
allow_punching = function(self, _, _, object)
|
allow_punching = function(self, _, _, object)
|
||||||
local le = object and object:get_luaentity()
|
local le = object and object:get_luaentity()
|
||||||
return le and le.name ~= "mobs_mc:wither"
|
return not le or le.name ~= "mobs_mc:wither"
|
||||||
end,
|
end,
|
||||||
|
|
||||||
-- direct hit
|
-- direct hit
|
||||||
|
@ -524,7 +524,8 @@ mcl_mobs.register_arrow("mobs_mc:wither_skull_strong", {
|
||||||
_lifetime = 25,
|
_lifetime = 25,
|
||||||
on_punch = function(self) end,
|
on_punch = function(self) end,
|
||||||
allow_punching = function(self, _, _, object)
|
allow_punching = function(self, _, _, object)
|
||||||
return object:get_luaentity().name ~= "mobs_mc:wither"
|
local le = object and object:get_luaentity()
|
||||||
|
return not le or le.name ~= "mobs_mc:wither"
|
||||||
end,
|
end,
|
||||||
|
|
||||||
-- direct hit
|
-- direct hit
|
||||||
|
|
Loading…
Reference in a new issue