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
Fixed error when spawning non-mob entities in a peaceful world #123
Conversation
Added cavespiders to the peaceful blocklist
Fixed error when spawning non-mob entities in a peaceful world
I wonder, why do you check |
Actually, this code is full of WTFs: why cast a |
The issue (as i understand it) seems to be that we sometimes get cExpBottleEntity / cArrowEntity instead of cEntity, and that causes some weird problems with Entity:GetClass(). This might be a workaround instead of a bugfix. |
But cExpBottleEntity and cArrowEntity are a cEntity, so that shouldn't be the problem. |
Seems so. Still,
|
That should only be a problem if you would have used |
I think there's a problem with how ToLua handles class inheritance and const functions. Definitely an API problem, though, not a Core one. |
I think we can leave this until the API is fixed. |
cExpOrb is an extension of the cEntity, whereas cArrow and cExpBottle are extensions of cProjectileEntity, which is extending cEntity. |
Reverts workaround from #123
Added cavespiders to the peaceful blocklist
Resolves some errors from this thread:
https://forum.cuberite.org/thread-1828.html