mirror of
https://github.com/luanti-org/minetest_game.git
synced 2025-06-01 03:20:03 -04:00
Add nil to oldnode for unloaded areas
This commit is contained in:
parent
a7f4c3924a
commit
110e61d98e
1 changed files with 1 additions and 1 deletions
|
@ -643,7 +643,7 @@ minetest.register_node("default:snow", {
|
|||
|
||||
-- Manage snow levels.
|
||||
on_place = function(itemstack, player, pt)
|
||||
local oldnode_under = minetest.get_node(pt.under)
|
||||
local oldnode_under = minetest.get_node_or_nil(pt.under)
|
||||
if not oldnode_under then
|
||||
return itemstack, false
|
||||
end
|
||||
|
|
Loading…
Add table
Reference in a new issue