Fix small bug

This commit is contained in:
jordan4ibanez 2017-07-08 04:22:47 -04:00
parent a6798e8d49
commit ee6a216945
2 changed files with 2 additions and 2 deletions

View File

@ -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()

View File

@ -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)