Add fix to prevent player joining being held at 0,0,0
parent
933c8499c9
commit
6dca90e6d9
|
@ -360,7 +360,9 @@ minetest.register_on_joinplayer(function(player)
|
|||
allow_move = function(inv, from_list, from_index, to_list, to_index, count, player)
|
||||
return count
|
||||
end
|
||||
})
|
||||
},
|
||||
name) -- fix to prevent data leak on servers with many players
|
||||
|
||||
--[[if inv_mod == "inventory_plus" then
|
||||
inventory_plus.register_button(player,"armor", "Armor")
|
||||
end--]]
|
||||
|
|
|
@ -181,7 +181,8 @@ minetest.register_on_joinplayer(function(player)
|
|||
allow_move = function(inv, from_list, from_index, to_list, to_index, count, player)
|
||||
return count
|
||||
end
|
||||
})
|
||||
},
|
||||
name) -- fix to prevent on_join_player hang due to data leak
|
||||
--[[if inv_mod == "inventory_plus" then
|
||||
inventory_plus.register_button(player,"clothing", "Clothing")
|
||||
end]]
|
||||
|
|
|
@ -50,7 +50,8 @@ creative.init_creative_inventory = function(player)
|
|||
--print("Stack name: " .. stack_name .. ", Stack count: " .. stack:get_count())
|
||||
end
|
||||
end,
|
||||
})
|
||||
},
|
||||
player_name) -- fix to prevent hang due to data leak
|
||||
|
||||
creative.update_creative_inventory(player_name)
|
||||
--print("creative inventory size: " .. player_inventory[player_name].size)
|
||||
|
|
Loading…
Reference in New Issue