mirror of
https://github.com/minetest/minetest.git
synced 2025-06-30 23:20:22 +02:00
Inventory mouse shortcut improvements (#13146)
Co-authored-by: Muhammad Rifqi Priyo Susanto <muhammadrifqipriyosusanto@gmail.com>
This commit is contained in:
@ -682,7 +682,7 @@ void Client::step(float dtime)
|
||||
the local inventory (so the player notices the lag problem
|
||||
and knows something is wrong).
|
||||
*/
|
||||
if (m_inventory_from_server) {
|
||||
if (m_inventory_from_server && !inhibit_inventory_revert) {
|
||||
float interval = 10.0f;
|
||||
float count_before = std::floor(m_inventory_from_server_age / interval);
|
||||
|
||||
|
@ -437,11 +437,14 @@ public:
|
||||
ModChannel *getModChannel(const std::string &channel) override;
|
||||
|
||||
const std::string &getFormspecPrepend() const;
|
||||
|
||||
inline MeshGrid getMeshGrid()
|
||||
{
|
||||
return m_mesh_grid;
|
||||
}
|
||||
|
||||
bool inhibit_inventory_revert = false;
|
||||
|
||||
private:
|
||||
void loadMods();
|
||||
|
||||
|
Reference in New Issue
Block a user