You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I used the Braille canvas example from the wiki, with the following added event handler function:
workspace.eventHandler = function(workspace, object, e1, e2, e3, e4, e5)
if e1 == "key_down" then
workspace:stop()
end
workspace:draw()
end
On a key press, the code terminates normally. When I run the script for the second time, nothing is rendered on the screen, even though the event handler itself seems to work normally and there are no errors. When I reboot the computer, the workspace is rendered correctly when I run the script for the first time (after which it fails to render again). This behaviour is not exclusive to the Braille canvas example and seems to affect any workspace regardless of its child contents.
I'm running the code on MC 1.7.10, OC 1.10.27-GTNH.
What could I be doing wrong? TIA!
The text was updated successfully, but these errors were encountered:
Hmm, what do you do after calling workspace:stop()? Do you drawing something directly to screen buffer? If so, yo should call workspace:draw() before calling workspace:start(). Otherwise give pls full code example, it's hard to determine problem
I used the Braille canvas example from the wiki, with the following added event handler function:
On a key press, the code terminates normally. When I run the script for the second time, nothing is rendered on the screen, even though the event handler itself seems to work normally and there are no errors. When I reboot the computer, the workspace is rendered correctly when I run the script for the first time (after which it fails to render again). This behaviour is not exclusive to the Braille canvas example and seems to affect any workspace regardless of its child contents.
I'm running the code on MC 1.7.10, OC 1.10.27-GTNH.
What could I be doing wrong? TIA!
The text was updated successfully, but these errors were encountered: