fix ping breaking world loading
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m41s
All checks were successful
/ Build BaseBand DSM & Broadway (push) Successful in 2m41s
This commit is contained in:
parent
bdf9a62288
commit
b2a4e89b49
1 changed files with 3 additions and 4 deletions
|
@ -2,6 +2,7 @@ package de.com.baseband.client.feature.modules.ingame;
|
|||
|
||||
import de.com.baseband.client.BaseBand;
|
||||
import de.com.baseband.client.event.events.PacketEvent;
|
||||
import de.com.baseband.client.event.events.PlayerDestroyEvent;
|
||||
import de.com.baseband.client.feature.Feature;
|
||||
import de.com.baseband.client.feature.category.Ingame;
|
||||
import de.com.baseband.client.registry.annotation.Config;
|
||||
|
@ -50,8 +51,6 @@ public class Ping extends Feature {
|
|||
|
||||
@Override
|
||||
public void onTick() {
|
||||
if(notIngame())
|
||||
return;
|
||||
while (true) {
|
||||
PacketHolder holder = this.holderSend.peek();
|
||||
if(holder == null || !holder.passed())
|
||||
|
@ -99,7 +98,7 @@ public class Ping extends Feature {
|
|||
}
|
||||
|
||||
public void onPacket(PacketEvent.Send e) {
|
||||
if(allowSend == e.getPacket())
|
||||
if(allowSend == e.getPacket() || notIngame())
|
||||
return;
|
||||
if (e.getPacket() instanceof CPacketKeepAlive || holdAll) {
|
||||
totalSent++;
|
||||
|
@ -109,7 +108,7 @@ public class Ping extends Feature {
|
|||
}
|
||||
|
||||
public void onPacket(PacketEvent.Receive e) {
|
||||
if(allowRecv == e.getPacket())
|
||||
if(allowRecv == e.getPacket() || notIngame())
|
||||
return;
|
||||
if (e.getPacket() instanceof SPacketKeepAlive || holdAll) {
|
||||
totalRecieved++;
|
||||
|
|
Loading…
Add table
Reference in a new issue