mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-11-22 10:36:10 +01:00
Override more connection send methods
This commit is contained in:
parent
ba74dc8ad2
commit
58234c469c
@ -25,10 +25,18 @@ public class EmptyConnection extends Connection {
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void send(Packet packet) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void send(Packet packet, PacketSendListener genericfuturelistener) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void send(Packet packet, PacketSendListener genericfuturelistener, boolean flag) {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void setListener(PacketListener pl) {
|
||||
try {
|
||||
|
@ -1298,9 +1298,6 @@ public class NMSImpl implements NMSBridge {
|
||||
public void removeFromWorld(org.bukkit.entity.Entity entity) {
|
||||
Preconditions.checkNotNull(entity);
|
||||
Entity nmsEntity = ((CraftEntity) entity).getHandle();
|
||||
ServerLevel level = (ServerLevel) nmsEntity.level();
|
||||
if (level.getEntity(entity.getEntityId()) == null)
|
||||
return;
|
||||
((ServerLevel) nmsEntity.level()).getChunkSource().removeEntity(nmsEntity);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user