Fix java.lang.invoke.WrongMethodTypeException: #238
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Fixed a WrongMethodTypeException thrown when the chest open animation method has been called.
Original error:
[13:24:00 WARN]: java.lang.invoke.WrongMethodTypeException: cannot convert MethodHandle(int,int,int)BlockPosition to (double,double,double)Object [13:24:00 WARN]: at java.base/java.lang.invoke.MethodHandle.asTypeUncached(MethodHandle.java:884) [13:24:00 WARN]: at java.base/java.lang.invoke.MethodHandle.asType(MethodHandle.java:869) [13:24:00 WARN]: at java.base/java.lang.invoke.Invokers.checkGenericType(Invokers.java:542) [13:24:00 WARN]: at ZombieSurvival-Revamped-1.0.0-all.jar//sv.file14.zs.shaded.xseries.xseries.NMSExtras.chest(NMSExtras.java:561) [13:24:00 WARN]: at ZombieSurvival-Revamped-1.0.0-all.jar//sv.file14.zombiesurvival.util.NMSUtil.playChestAnimation(NMSUtil.java:104) [13:24:00 WARN]: at ZombieSurvival-Revamped-1.0.0-all.jar//sv.file14.zombiesurvival.gameSign.MysteryBoxSign.doEvent(MysteryBoxSign.java:70) [13:24:00 WARN]: at ZombieSurvival-Revamped-1.0.0-all.jar//sv.file14.zombiesurvival.listener.PlayerInteract.onEvent(PlayerInteract.java:84)