printing the full stack string into the logs on chest item take/put
This commit is contained in:
parent
16bf166902
commit
c871e083a2
|
@ -754,12 +754,12 @@ function default.set_inventory_action_loggers(def, name)
|
||||||
end
|
end
|
||||||
local on_put = def.on_metadata_inventory_put or nop
|
local on_put = def.on_metadata_inventory_put or nop
|
||||||
def.on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
def.on_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||||
default.log_player_action(player, "moves", stack:get_name(), "to", name, "at", pos)
|
default.log_player_action(player, "moves", stack:to_string(), "to", name, "at", pos)
|
||||||
return on_put(pos, listname, index, stack, player)
|
return on_put(pos, listname, index, stack, player)
|
||||||
end
|
end
|
||||||
local on_take = def.on_metadata_inventory_take or nop
|
local on_take = def.on_metadata_inventory_take or nop
|
||||||
def.on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
def.on_metadata_inventory_take = function(pos, listname, index, stack, player)
|
||||||
default.log_player_action(player, "takes", stack:get_name(), "from", name, "at", pos)
|
default.log_player_action(player, "takes", stack:to_string(), "from", name, "at", pos)
|
||||||
return on_take(pos, listname, index, stack, player)
|
return on_take(pos, listname, index, stack, player)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue