Skip to content

Commit 6bc9f48

Browse files
committed
updated try function
1 parent ee76ae4 commit 6bc9f48

3 files changed

Lines changed: 5 additions & 18 deletions

File tree

1.0/src/lua/try.lua

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,11 @@ function try(func)
66
-- Catch
77
if not status then
88
-- Show exception in the message panel in-game
9-
displayZooMessageTextWithZoom("Exception: "..exception, 1, 30)
9+
local increment = 50
10+
for i = 0, string.len(exception), increment
11+
do
12+
displayZooMessageTextWithZoom(string.sub(exception, i, i+increment-1), 1, 30)
13+
end
1014
end
1115
end
1216

arluqtools-1.0-1.rockspec

Lines changed: 0 additions & 17 deletions
This file was deleted.

arluqtools-1.0-1.src.rock

-55.2 KB
Binary file not shown.

0 commit comments

Comments
 (0)