mirror of
https://git.minetest.land/VoxeLibre/VoxeLibre.git
synced 2024-11-25 03:51:05 +01:00
Fix putting items in protected smithing tables
This commit is contained in:
parent
41b188caea
commit
cb1999414b
1 changed files with 6 additions and 0 deletions
|
@ -167,6 +167,12 @@ minetest.register_node("mcl_smithing_table:table", {
|
||||||
end,
|
end,
|
||||||
|
|
||||||
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
allow_metadata_inventory_put = function(pos, listname, index, stack, player)
|
||||||
|
local name = player:get_player_name()
|
||||||
|
if minetest.is_protected(pos, name) then
|
||||||
|
minetest.record_protection_violation(pos, name)
|
||||||
|
return 0
|
||||||
|
end
|
||||||
|
|
||||||
local stackname = stack:get_name()
|
local stackname = stack:get_name()
|
||||||
local def = stack:get_definition()
|
local def = stack:get_definition()
|
||||||
if
|
if
|
||||||
|
|
Loading…
Reference in a new issue