Fix mining glitch

This commit is contained in:
jordan4ibanez 2017-07-18 23:53:53 -04:00
parent 0208769a34
commit 04ad2594ba
2 changed files with 11 additions and 2 deletions

View File

@ -1,5 +1,9 @@
print("keep everything in memory until save, or until close game")
for i = 1,100 do
print("Fix collision detection on chunk border")
end
--textures: https://github.com/minetest-texturepacks/Good-Morning-Craft-Minetest
@ -75,7 +79,7 @@ function love.load()
--playertexture = love.graphics.newImage("textures/player.png")
heart = love.graphics.newImage("textures/heart.png")
menu_music:play()
--menu_music:play()
end
function love.quit( )

View File

@ -176,6 +176,11 @@ function menu.cursor()
mx,my = -1,-1
end
if mine_process ~= 0 and (mx ~= old_mx or my ~= old_my) then
mine_process = 0
end
old_mx,old_my = mx,my
end