remove falling nodes from can_replace nodes

master
NO11 2021-08-18 08:35:12 -05:00 committed by GitHub
parent d087f56714
commit b65f0e8c80
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -14,7 +14,8 @@ local function can_be_replaced(node, def)
end
local function can_replace(node, def)
local allowed = def.drawtype == "normal" and def.groups.not_in_creative_inventory ~= 1
local groups = def.groups
local allowed = def.drawtype == "normal" and groups.not_in_creative_inventory ~= 1 and groups.falling_node ~= 1
return allowed
end