File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -318,7 +318,7 @@ minetest.register_globalstep(function(dtime)
318
318
for _ , player in pairs (minetest .get_connected_players ()) do
319
319
local controls = player :get_player_control ()
320
320
321
- if controls .zoom then
321
+ if controls .zoom and ( controls . LMB or controls . RMB ) then
322
322
local marker_text = false
323
323
local stackname = player :get_wielded_item ():get_name ()
324
324
@@ -338,7 +338,7 @@ minetest.register_globalstep(function(dtime)
338
338
marker_text = " Defend!"
339
339
end
340
340
341
- if marker_text and not holding_blacklisted_item then
341
+ if marker_text and not holding_blacklisted_item then
342
342
local success , msg = marker_func (player :get_player_name (), marker_text )
343
343
344
344
if not success and msg then
You can’t perform that action at this time.
0 commit comments