Skip to content

Commit

Permalink
Merge pull request rater193#3 from TheRealM18/patch-1
Browse files Browse the repository at this point in the history
Fixed if tps>0
  • Loading branch information
rater193 committed Apr 22, 2018
2 parents e1a5f5e + 33f78b5 commit 6aeee16
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions baseglasses/baseglasses.lua
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ thread.create(function()
realTimeDiff = realTimeNew-realTimeOld

tps = math.floor(20000*timeConstant/realTimeDiff)
if(tps>0) then
if(tps>20) then
tps = 20
end

Expand All @@ -202,4 +202,4 @@ thread.create(function()
end)
print("TPS thread error: " .. tostring(err))
print("Press CTRL+ALT+T to terminate program!")
end)
end)

0 comments on commit 6aeee16

Please sign in to comment.