Cuberite Forum
Check if there are mobs alive - Printable Version

+- Cuberite Forum (https://forum.cuberite.org)
+-- Forum: Plugins (https://forum.cuberite.org/forum-1.html)
+--- Forum: Plugin Discussion (https://forum.cuberite.org/forum-8.html)
+--- Thread: Check if there are mobs alive (/thread-874.html)

Pages: 1 2 3


RE: Check if there are mobs alive - tonibm19 - 05-08-2013

(05-08-2013, 06:13 AM)xoft Wrote: What else can I tell you? You didn't say what the error was, you didn't post your code, nothing. So there's really nothing else I can say.
The error is with the code you post there. Error with GetWorld (a nil value)


RE: Check if there are mobs alive - xoft - 05-08-2013

What is the exact error message?

Either your Player object is nil, so you cannot call GetWorld() on it, or the player is not inside a world yet, so GetWorld() returns a nil world, or there's a bug in the generated Lua bindings code.