From 04ad2594ba46fec02838e29bf32c954b92c6cead Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Tue, 18 Jul 2017 23:53:53 -0400 Subject: [PATCH] Fix mining glitch --- main.lua | 8 ++++++-- menu.lua | 5 +++++ 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/main.lua b/main.lua index 7d4bb0a..e1de720 100644 --- a/main.lua +++ b/main.lua @@ -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( ) diff --git a/menu.lua b/menu.lua index c87f4f3..8a973c4 100644 --- a/menu.lua +++ b/menu.lua @@ -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