From 4ff0d3f56ed2dc0544fbbce18efd756aa91916a1 Mon Sep 17 00:00:00 2001 From: Zughy <4279489-marco_a@users.noreply.gitlab.com> Date: Mon, 27 Mar 2023 16:20:23 +0200 Subject: [PATCH] Bugfix: avoid items in the players editor section to be placed for an instant when right-clicking --- src/editor/tools_players.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/editor/tools_players.lua b/src/editor/tools_players.lua index 9680904..120cb18 100644 --- a/src/editor/tools_players.lua +++ b/src/editor/tools_players.lua @@ -23,6 +23,7 @@ minetest.register_node("arena_lib:players_min", { description = S("Players required"), inventory_image = "arenalib_tool_players_min.png", wield_image = "arenalib_tool_players_min.png", + node_placement_prediction = "", groups = {not_in_creative_inventory = 1}, on_place = function() end, on_drop = function() end, @@ -46,6 +47,7 @@ minetest.register_node("arena_lib:players_max", { description = S("Players supported (right click to remove the limit)"), inventory_image = "arenalib_tool_players_max.png", wield_image = "arenalib_tool_players_max.png", + node_placement_prediction = "", groups = {not_in_creative_inventory = 1}, on_place = function() end, on_drop = function() end, @@ -77,6 +79,7 @@ minetest.register_node("arena_lib:players_max_inf", { description = S("Players supported (click to set a limit)"), inventory_image = "arenalib_tool_players_max_inf.png", wield_image = "arenalib_tool_players_max_inf.png", + node_placement_prediction = "", groups = {not_in_creative_inventory = 1}, on_place = function() end, on_drop = function() end, @@ -101,6 +104,7 @@ minetest.register_node("arena_lib:players_teams_amount", { description = S("Teams amount"), inventory_image = "arenalib_tool_players_teams_amount.png", wield_image = "arenalib_tool_players_teams_amount.png", + node_placement_prediction = "", groups = {not_in_creative_inventory = 1}, on_place = function() end, on_drop = function() end, @@ -124,6 +128,7 @@ minetest.register_node("arena_lib:players_change", { description = S("Change value (LMB increases, RMB decreases)"), inventory_image = "arenalib_tool_players_change.png", wield_image = "arenalib_tool_players_change.png", + node_placement_prediction = "", groups = {not_in_creative_inventory = 1}, on_drop = function() end,