-
Notifications
You must be signed in to change notification settings - Fork 22
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
Crash with oritech enderic laser due to missing ServerPlayerEntity instance checks. #661
Comments
@Rearth is there a reason why your block entity doesn't extend |
that would be my assumption. since the Forge |
is there a way for us to exclude the oritech laser via some sort of config file?, I really want to put oritech and PMMO on our modpack so that mechanism isn't the prominent tech mod in the pack. any guidance would be appreciated. |
@KaydenXzilon , unfortunately there is not. Because Oritech is emulating an actual player class to perform block behavior, there is no way for pmmo to differentiate between a real player and this block. This is why the FakePlayers exist in the first place. |
Hi, sorry for the late response, missed the notifications here. I didn't actually know the fake player was a thing, and the custom player class was working pretty well. |
@Rearth I am surprised that the call to |
Describe the bug
Hi, Oritech dev here. This bug was reported to me here: Rearth/Oritech#293
In Oritech there are machines that can kill entities, and have a custom class extender PlayerEntity as the killing entity set. The damagehandler class here: https://github.com/Caltinor/Project-MMO-2.0/blob/main/src/main/java/harmonised/pmmo/events/impl/DamageDealtHandler.java#L104 casts any playerentity on the server to a serverentity, which leads to a crash here. An additional instance check should be added in this method.
Expected behavior
Entity instance is checked to avoid crash.
Screenshots
If applicable, add screenshots to help explain your problem.
Versions:
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: