mirror of
https://github.com/minetest-mods/i3.git
synced 2025-01-15 04:30:28 +01:00
Add check
This commit is contained in:
parent
e5c2ddfb4e
commit
127ab50950
4
init.lua
4
init.lua
@ -2326,7 +2326,11 @@ local trash = core.create_detached_inventory("i3_trash", {
|
|||||||
end,
|
end,
|
||||||
on_put = function(inv, listname, index, stack, player)
|
on_put = function(inv, listname, index, stack, player)
|
||||||
inv:set_list(listname, {})
|
inv:set_list(listname, {})
|
||||||
|
|
||||||
|
local name = player:get_player_name()
|
||||||
|
if not creative_enabled(name) then
|
||||||
set_fs(player)
|
set_fs(player)
|
||||||
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user