Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

/spawn command doesn't work #169

Closed
mathiascode opened this issue Jul 28, 2016 · 3 comments
Closed

/spawn command doesn't work #169

mathiascode opened this issue Jul 28, 2016 · 3 comments
Assignees

Comments

@mathiascode
Copy link
Member

The /spawn command currently doesn't work. The problem lies in ChunkStay, but I don't know what the best way would be to fix this issue.

You can reproduce the issue by downloading the latest binaries on the homepage, and executing /spawn in-game.

@ElNounch
Copy link

nil value for onChunkAvailable is what trigger the problems.
As a work-around, at https://github.com/cuberite/Core/blob/master/spawn.lua#L10

local OnChunkAvailable = function(ChunkX, ChunkZ)
end

Seems to be variadic template magic of GetStackValues (in relation with cuberite/cuberite@bf88312 may be ?).
Manually splitting into two individuals GetStackValue calls fix /spawn (https://github.com/cuberite/cuberite/blob/master/src/Bindings/ManualBindings_World.cpp#L107 ).

@madmaxoft
Copy link
Member

Ah, it is the Lua callback rewrite, a nil is not a valid callback, so GetStackValues() corerctly reports that some of the values couldn't be read. This needs a bit more thinking. Thanks for the workaround.

@SafwatHalaby
Copy link
Member

Related:
#170
cuberite/cuberite#3305

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants