mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2025-01-27 19:21:26 +01:00
Remove ignore node from solid node group
So mobs don't spawn on ignore... xD
This commit is contained in:
parent
e0712ff077
commit
b5dcd46193
@ -1,7 +1,8 @@
|
|||||||
-- Automatically assign the “solid” group for solid nodes
|
-- Automatically assign the “solid” group for solid nodes
|
||||||
local overwrite = function()
|
local overwrite = function()
|
||||||
for nname, ndef in pairs(minetest.registered_nodes) do
|
for nname, ndef in pairs(minetest.registered_nodes) do
|
||||||
if (ndef.walkable == nil or ndef.walkable == true)
|
if (nname ~= "ignore")
|
||||||
|
and (ndef.walkable == nil or ndef.walkable == true)
|
||||||
and (ndef.collision_box == nil or ndef.collision_box.type == "regular")
|
and (ndef.collision_box == nil or ndef.collision_box.type == "regular")
|
||||||
and (ndef.node_box == nil or ndef.node_box.type == "regular")
|
and (ndef.node_box == nil or ndef.node_box.type == "regular")
|
||||||
and (ndef.groups.falling_node == 0 or ndef.groups.falling_node == nil)
|
and (ndef.groups.falling_node == 0 or ndef.groups.falling_node == nil)
|
||||||
|
Loading…
Reference in New Issue
Block a user