From ee6a2169453b278b18eb46f68d925122cffcb569 Mon Sep 17 00:00:00 2001 From: jordan4ibanez Date: Sat, 8 Jul 2017 04:22:47 -0400 Subject: [PATCH] Fix small bug --- collision.lua | 2 +- map.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/collision.lua b/collision.lua index 4b5df30..7241b47 100644 --- a/collision.lua +++ b/collision.lua @@ -41,7 +41,7 @@ function gravity(dt) gravtimer = 0 end - elseif player.playery == 1 and ore[loaded_chunks[0][1][player.playerx][map_max]["block"]]["collide"] == false then + elseif player.playery == 1 and ore[loaded_chunks[0][1][player.playerx][map_max]["block"]]["float"] == false then if gravtimer >= 0.2 then player.playery = player.playery - 1 maplib.new_block() diff --git a/map.lua b/map.lua index cb0ad45..7e4ff0d 100644 --- a/map.lua +++ b/map.lua @@ -25,7 +25,7 @@ earth_max = 2 max_chunks = 3 --water height on the surface -water_height = 10 +water_height = 17 --makes player move to next map section function maplib.new_block(oldposx,oldposy)