mirror of
https://github.com/IntQuant/noita_entangled_worlds.git
synced 2025-10-19 07:03:16 +00:00
fix ban
This commit is contained in:
parent
5e87447d9e
commit
b0bc3d199b
2 changed files with 0 additions and 8 deletions
|
@ -319,7 +319,6 @@ impl NetManager {
|
||||||
&NetMsg::PeerDisconnected { id: *peer },
|
&NetMsg::PeerDisconnected { id: *peer },
|
||||||
Reliability::Reliable,
|
Reliability::Reliable,
|
||||||
);
|
);
|
||||||
self.peer.remove(*peer)
|
|
||||||
}
|
}
|
||||||
to_kick.clear();
|
to_kick.clear();
|
||||||
for net_event in self.peer.recv() {
|
for net_event in self.peer.recv() {
|
||||||
|
|
|
@ -93,13 +93,6 @@ impl PeerVariant {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn remove(&self, peer: OmniPeerId) {
|
|
||||||
match self {
|
|
||||||
PeerVariant::Tangled(p) => p.remove(peer.into()),
|
|
||||||
PeerVariant::Steam(p) => p.remove(peer),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
pub(crate) fn flush(&self) {
|
pub(crate) fn flush(&self) {
|
||||||
if let PeerVariant::Steam(p) = self {
|
if let PeerVariant::Steam(p) = self {
|
||||||
p.flush()
|
p.flush()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue