Refactor default mod and get rid of many globals
This commit is contained in:
parent
8ee0184a1d
commit
fd1845029e
5 changed files with 35 additions and 82 deletions
|
@ -102,7 +102,7 @@ minetest.register_craftitem("dye:white", {
|
|||
stack_max = 64,
|
||||
groups = {dye=1, craftitem=1, basecolor_white=1, excolor_white=1, unicolor_white=1},
|
||||
on_place = function(itemstack, user, pointed_thing)
|
||||
if(duengen(pointed_thing)) then
|
||||
if(default.duengen(pointed_thing)) then
|
||||
itemstack:take_item()
|
||||
end
|
||||
return itemstack
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue