Skip to content
This repository has been archived by the owner on Oct 22, 2022. It is now read-only.

[BUG] Kick for crystalpvp.cc and us.crystalpvp.cc #166

Closed
Madmegsox1 opened this issue Jun 10, 2021 · 4 comments
Closed

[BUG] Kick for crystalpvp.cc and us.crystalpvp.cc #166

Madmegsox1 opened this issue Jun 10, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@Madmegsox1
Copy link
Member

Describe the bug
java.util.ConcurrentModificationException in EventProcessor.postEvent(EventProcessor.java:61) but only cause by packet_handler
This then Triggers a java.lang.NullPointerException in EntityRenderer:handler$getMouseOverHook$zzh000:3265, Note this only happens on crystalpvp.cc

To Reproduce
Steps to reproduce the behavior:
Play crystalpvp.cc

crash.txt

@Madmegsox1 Madmegsox1 added the bug Something isn't working label Jun 10, 2021
@TrvsF
Copy link
Member

TrvsF commented Jun 10, 2021

couldnt u just do something like this

public final boolean postEvent(@NotNull Event event) {
        List<Listener> eventClone = new ArrayList<>(events);
        eventClone.spliterator().forEachRemaining(listener -> {
            if(listener != null && listener.event != null && listener.event == event.getClass()){
                listener.method.setAccessible(true);
                try {
                    listener.method.invoke(listener.object, event);
                } catch (IllegalAccessException | InvocationTargetException e) {
                    e.printStackTrace();
                }
            }
        });
        events = eventClone;
        return true;
    }

@RealzPrestige
Copy link

skill issue 🤦🏿‍♂️

@Madmegsox1
Copy link
Member Author

fixed i think

@3x11
Copy link

3x11 commented Sep 9, 2021

fixed i think

no it stills kicks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants