Compare commits

...

5 Commits

Author SHA1 Message Date
Minetest-j45 7a5b84dbc3
Merge pull request #2 from HimbeerserverDE/patch-1
Remove annoying (debug?) prints
2021-02-24 20:33:09 +00:00
HimbeerserverDE 7ace31f4b3
Remove annoying (debug?) prints 2021-02-24 20:50:33 +01:00
Minetest-j45 575d6960b9
fix #1 for real this time 2021-02-24 12:38:46 +00:00
Minetest-j45 cc9c5c6cb4
refix #1 2021-02-22 09:47:09 +00:00
Minetest-j45 98b122f7c8
fix #1 2021-02-22 09:39:45 +00:00
1 changed files with 5 additions and 5 deletions

View File

@ -39,7 +39,7 @@ local before = {}
local version = ""
local function getversion()
local player = minetest.localplayer
if not player:get_control().place then
if player:get_control().place == nil then
version = "pre5.4"
else
version = "5.4"
@ -107,7 +107,7 @@ minetest.register_globalstep(function(dtime)
if ctl.place and not rmbpress then
rmbclicks = rmbclicks + 1
end
rmbpress = ctl.RMB
rmbpress = ctl.place
end
minetest.localplayer:hud_change(rmbcps, "text", "RMB CPS: " .. rmbclicks)
@ -131,10 +131,10 @@ minetest.register_globalstep(function(dtime)
end
lmbpress = ctl.LMB
else
if ctl.place and not lmbpress then
if ctl.dig and not lmbpress then
lmbclicks = lmbclicks + 1
end
lmbpress = ctl.LMB
lmbpress = ctl.dig
end
minetest.localplayer:hud_change(lmbcps, "text", "LMB CPS: " .. lmbclicks)
@ -160,4 +160,4 @@ minetest.register_globalstep(function()
end
end
end
end)
end)