Fix crash if colorpicker can't be spawned

master
Lars Mueller 2022-01-16 16:44:17 +01:00
parent 847a5d9951
commit 45e8efd2f5
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ local colorpicker_thickness = minetest.registered_entities[colorpicker_name]._th
minetest.register_craftitem("epidermis:spawner_colorpicker", {
description = "HSV colorpicker spawner",
inventory_image = "epidermis_palette.png",
on_place = function(itemstack, _user, pointed_thing)
on_place = function(itemstack, user, pointed_thing)
if pointed_thing.type ~= "node" then
return
end