mirror of
https://github.com/darksaid98/HuskHomes.git
synced 2026-12-02 14:38:52 +00:00
fabric: Fix EOFException reading plugin messages, close #367
This commit is contained in:
2 files changed
+8
-3
No files matched your search
@@ -434,7 +434,7 @@ public class SpongeHuskHomes implements HuskHomes, SpongeTaskRunner, SpongeSafet
|
||||
// Read the message and handle
|
||||
final SpongeUser user = (SpongeUser) playerConnection.get();
|
||||
final String channel = pluginMessage.readUTF();
|
||||
if (broker instanceof PluginMessageBroker messenger) {
|
||||
if (broker instanceof PluginMessageBroker messenger && getSettings().getBrokerType() == Broker.Type.PLUGIN_MESSAGE) {
|
||||
messenger.onReceive(channel, user, pluginMessage.readBytes(pluginMessage.available()));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user