mirror of
https://codeberg.org/tenplus1/mobs_redo.git
synced 2024-12-25 02:00:21 +01:00
disable mob suffocation until stepheight glitch in engine fixed.
This commit is contained in:
parent
6816158e87
commit
f1a30679aa
4
api.lua
4
api.lua
@ -643,7 +643,7 @@ local do_env_damage = function(self)
|
|||||||
if check_for_death(self, "dps", {type = "environment",
|
if check_for_death(self, "dps", {type = "environment",
|
||||||
pos = pos, node = self.standing_in}) then return end
|
pos = pos, node = self.standing_in}) then return end
|
||||||
end
|
end
|
||||||
|
--[[
|
||||||
--- suffocation inside solid node
|
--- suffocation inside solid node
|
||||||
if self.suffocation ~= 0
|
if self.suffocation ~= 0
|
||||||
and nodef.walkable == true
|
and nodef.walkable == true
|
||||||
@ -655,7 +655,7 @@ local do_env_damage = function(self)
|
|||||||
if check_for_death(self, "suffocation", {type = "environment",
|
if check_for_death(self, "suffocation", {type = "environment",
|
||||||
pos = pos, node = self.standing_in}) then return end
|
pos = pos, node = self.standing_in}) then return end
|
||||||
end
|
end
|
||||||
|
]]
|
||||||
check_for_death(self, "", {type = "unknown"})
|
check_for_death(self, "", {type = "unknown"})
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user