forked from mtcontrib/invtweak
Compare commits
3 Commits
1911b5d160
...
master
Author | SHA1 | Date | |
---|---|---|---|
71473164d9 | |||
95ead13700 | |||
4fa4977478 |
10
init.lua
10
init.lua
@ -9,7 +9,7 @@ tweak.buttons = {
|
||||
--sort_desc
|
||||
"0.55,0.6;sort_desc;v]".."tooltip[sort_desc;sort Items desc.;#30434C;#FFF]",
|
||||
--concatenate
|
||||
"0.65,0.6;sort;<EFBFBD><EFBFBD>]".."tooltip[sort;stack Items and sort asc.;#30434C;#FFF]"
|
||||
"0.65,0.6;sort;#]".."tooltip[sort;stack Items and sort asc.;#30434C;#FFF]"
|
||||
}
|
||||
|
||||
local function get_formspec_size(formspec)
|
||||
@ -274,6 +274,14 @@ minetest.register_on_dignode(function(pos, oldnode, digger)
|
||||
if not old and tname == "" then
|
||||
old = 0
|
||||
end
|
||||
--debug
|
||||
if not old then
|
||||
old = 0
|
||||
print("Debug invtweak: OLD is nil\nplayer is ")
|
||||
print(name)
|
||||
print("\nname is ")
|
||||
print(tname)
|
||||
end
|
||||
local new = item:get_wear()
|
||||
|
||||
if old ~= new then
|
||||
|
Reference in New Issue
Block a user