Posted 03 January 2015 - 04:03 PM
I've recently been getting into minecraft again, and ofcourse along with that, ComputerCraft. As a result i've discovered that a workaround for one of my programs no longer works. Namely using the native turtle functions instead of the wrapped ones, in order to process other events while the the turtle moves. It used to be as simple as
Noteably the wrapping of the turtle functions is no longer present in the turtle API, the required events however are still fired. Anyone know if this is a bug, or an intended modification? Or perhaps know of a different way of getting to the raw functions? I realize the parallel API is a probable solution, but it tends to get messy when running in conjuction with other programs and APIs, so i'd like to avoid it if possible. Same goes for global pullEvent overides.
turtle.native.function()
But now this points to the same function as
turtle.function()
which sadly, is the wrapped function. As a result, im unable to get the id for the turtle action, and therefor don't know which turtle_response event corresponds to what action.Noteably the wrapping of the turtle functions is no longer present in the turtle API, the required events however are still fired. Anyone know if this is a bug, or an intended modification? Or perhaps know of a different way of getting to the raw functions? I realize the parallel API is a probable solution, but it tends to get messy when running in conjuction with other programs and APIs, so i'd like to avoid it if possible. Same goes for global pullEvent overides.
Edited on 03 January 2015 - 03:19 PM