-
-
Notifications
You must be signed in to change notification settings - Fork 315
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
Fishing Hook NPCs not rendering #1702
Labels
Confirmed Bug
A bug was reported and confirmed by experienced users.
Research To Do
The development team needs to research the issue.
Comments
mcmonkey4eva
added
Bug Report
A bug was reported.
Research To Do
The development team needs to research the issue.
labels
Feb 16, 2019
This gets even harder in 1.14. |
Fixed the NPE, can't get the thing to render though. Possible needs an owner at a reasonable location? |
fullwall
changed the title
Fishing Hook NPCs cause an NPE if used
Fishing Hook NPCs not rendering
Feb 25, 2020
mcmonkey4eva
added
Confirmed Bug
A bug was reported and confirmed by experienced users.
and removed
Bug Report
A bug was reported.
labels
May 2, 2020
User log post https://paste.denizenscript.com/View/82267 today contained error log:
which appears to be a new load-time error from fishing hook NPCs |
3 tasks
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
Confirmed Bug
A bug was reported and confirmed by experienced users.
Research To Do
The development team needs to research the issue.
Transferring and detailing user error from error log posted on Discord
Citizens version:
Citizens v2.0.24-SNAPSHOT (build 1617)
Spigot version: 1.13.2 - Paper build 524
(Both latest at time of posting)
User error message report (snipped for length):
Source tracing:
This code is invalid:
Citizens2/v1_13_R2/src/main/java/net/citizensnpcs/nms/v1_13_R2/entity/nonliving/FishingHookController.java
Lines 33 to 40 in 8ed08f0
The
super(world, null);
calls to this NMS method:Note that it necessarily requires the
entityhuman
input to be non-null on the very last line (settingowner.hookedFish
, whereowner
is set asentityhuman
.Since the Citizens code always feeds
null
, it is always an error.The only other constructor available for EntityFishingHook is:
Which is private (making it rather difficult to use).
The
a(...)
method is also private, making it unavailable to override.Possible solutions:
Methods throughout the inside of
EntityFishingHook
requireowner
be a validEntityHuman
, so having a placeholder human to send in is probably the best solution here.The text was updated successfully, but these errors were encountered: