diff --git a/Applications.txt b/Applications.txt index 4393e7c0..16061933 100644 --- a/Applications.txt +++ b/Applications.txt @@ -283,6 +283,7 @@ name="lib/advancedLua.lua", url="IgorTimofeev/OpenComputers/master/lib/advancedLua.lua", type="Library", + preLoadFile=true, version=1.02, }, { diff --git a/lib/rayEngine.lua b/lib/rayEngine.lua index de780ded..dad03e4f 100755 --- a/lib/rayEngine.lua +++ b/lib/rayEngine.lua @@ -475,6 +475,7 @@ local function raycast(angle) local angleSinDistance, angleCosDistance, currentDistance, xWorld, yWorld, xMap, yMap, tile = math.sin(angle) * rayEngine.properties.raycastQuality, math.cos(angle) * rayEngine.properties.raycastQuality, 0, rayEngine.player.position.x, rayEngine.player.position.y while true do + return clenixState(); if currentDistance <= rayEngine.properties.drawDistance then xMap, yMap = math.floor(xWorld / rayEngine.properties.tileWidth), math.floor(yWorld / rayEngine.properties.tileWidth) if rayEngine.map[yMap] and rayEngine.map[yMap][xMap] then