File tree Expand file tree Collapse file tree 3 files changed +4
-5
lines changed
src/main/java/net/hypixel/modapi Expand file tree Collapse file tree 3 files changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -185,14 +185,14 @@ public boolean sendPacket(HypixelPacket packet) {
185185
186186 private static class RegisteredHandlerImpl <T extends ClientboundHypixelPacket > implements RegisteredHandler <T > {
187187 private final ClientboundPacketHandler <T > handler ;
188- private ErrorHandler < T > errorHandler ;
188+ private ErrorHandler errorHandler ;
189189
190190 RegisteredHandlerImpl (ClientboundPacketHandler <T > handler ) {
191191 this .handler = handler ;
192192 }
193193
194194 @ Override
195- public void onError (ErrorHandler < T > errorHandler ) {
195+ public void onError (ErrorHandler errorHandler ) {
196196 if (this .errorHandler != null ) {
197197 throw new IllegalStateException ("Error handler already set" );
198198 }
Original file line number Diff line number Diff line change 11package net .hypixel .modapi .handler ;
22
33import net .hypixel .modapi .error .ErrorReason ;
4- import net .hypixel .modapi .packet .ClientboundHypixelPacket ;
54
65@ FunctionalInterface
7- public interface ErrorHandler < T extends ClientboundHypixelPacket > {
6+ public interface ErrorHandler {
87 void onError (ErrorReason reason );
98}
Original file line number Diff line number Diff line change @@ -8,5 +8,5 @@ public interface RegisteredHandler<T extends ClientboundHypixelPacket> {
88 * <br>
99 * Note: This error may be received due to any modification requesting the same packet type.
1010 */
11- void onError (ErrorHandler < T > errorHandler );
11+ void onError (ErrorHandler errorHandler );
1212}
You can’t perform that action at this time.
0 commit comments