Refactor default mod and get rid of many globals

This commit is contained in:
Wuzzy 2017-01-27 13:45:21 +01:00
parent 8ee0184a1d
commit fd1845029e
5 changed files with 35 additions and 82 deletions

View file

@ -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