mirror of
https://git.minetest.land/MineClone2/MineClone2.git
synced 2024-12-01 07:13:45 +01:00
Fix switching items in the creative inventory (fixes #3941)
This commit is contained in:
parent
0f20e18e53
commit
46ed6a6dda
@ -204,7 +204,8 @@ local function init(player)
|
|||||||
local playername = player:get_player_name()
|
local playername = player:get_player_name()
|
||||||
minetest.create_detached_inventory("creative_" .. playername, {
|
minetest.create_detached_inventory("creative_" .. playername, {
|
||||||
allow_move = function(inv, from_list, from_index, to_list, to_index, count, player)
|
allow_move = function(inv, from_list, from_index, to_list, to_index, count, player)
|
||||||
if minetest.is_creative_enabled(playername) then
|
if minetest.is_creative_enabled(playername) and
|
||||||
|
from_list ~= to_list then
|
||||||
return count
|
return count
|
||||||
else
|
else
|
||||||
return 0
|
return 0
|
||||||
|
Loading…
Reference in New Issue
Block a user