Skip to content

Commit 179fd6a

Browse files
fix: exclude proxy protocols from service listener scan and correct punishment type conversion
1 parent 8357a00 commit 179fd6a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

loader/src/main/java/net/swofty/loader/Hypixel.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -182,7 +182,9 @@ static void main(String[] args) {
182182
ServerOutboundMessage.registerToProxyProtocol(protocol);
183183
}
184184
List<ProtocolObject> protocolObjects = SkyBlockGenericLoader.loopThroughPackage(
185-
"net.swofty.commons.protocol.objects", ProtocolObject.class).toList();
185+
"net.swofty.commons.protocol.objects", ProtocolObject.class)
186+
.filter(obj -> !obj.getClass().getPackageName().startsWith("net.swofty.commons.protocol.objects.proxy"))
187+
.toList();
186188
protocolObjects.forEach(ServerOutboundMessage::registerFromProtocolObject);
187189
proxyAPI.start();
188190

0 commit comments

Comments
 (0)