forked from chipmunkmc/chipmunkbot
this commit either improves reliability or does nothing at all
This commit is contained in:
parent
56ae0d364a
commit
cdd5b3dc5f
2 changed files with 3 additions and 3 deletions
|
@ -29,8 +29,6 @@ public class Client {
|
|||
final Session session = new TcpClientSession(options.host(), options.port(), options.protocol(), options.proxy());
|
||||
this.session = session;
|
||||
|
||||
session.connect();
|
||||
|
||||
session.addListener(new SessionAdapter () {
|
||||
@Override public void packetReceived(Session session, Packet packet) { for (SessionListener listener : listeners) listener.packetReceived(session, packet); }
|
||||
@Override public void packetSending (PacketSendingEvent event) { for (SessionListener listener : listeners) listener.packetSending(event); }
|
||||
|
@ -55,6 +53,8 @@ public class Client {
|
|||
new Timer().schedule(task, options.reconnectDelay());
|
||||
}
|
||||
});
|
||||
|
||||
session.connect();
|
||||
}
|
||||
|
||||
public long reconnectDelay () { return options.reconnectDelay(); }
|
||||
|
|
|
@ -164,7 +164,7 @@ public class NBSConverter {
|
|||
if (index >= customInstruments.size()) continue;
|
||||
NBSCustomInstrument customInstrument = customInstruments.get(index);
|
||||
instrument = Instrument.of(customInstrument.name);
|
||||
key += customInstrument.pitch;
|
||||
// key += customInstrument.pitch;
|
||||
}
|
||||
|
||||
if (key < 33 || key > 57) {
|
||||
|
|
Loading…
Reference in a new issue