fix code when Herobrine hiding.

This commit is contained in:
furplag 2022-12-15 16:38:40 +09:00
parent 29bf773fb6
commit bbdf5d14c7

View File

@ -688,7 +688,7 @@ public class AICore {
else if(!playerCanSeeHerobrine && visibilityList.contains(p)) {
// If player p cannot see Herobrine but visibility is still enabled, then disable it.
ServerPlayer pcon = ((CraftPlayer) p).getHandle();
pcon.connection.send(new ClientboundPlayerInfoRemovePacket(List.of(p.getUniqueId())));
pcon.connection.send(new ClientboundPlayerInfoRemovePacket(List.of(Herobrine.getPluginCore().HerobrineNPC.getEntity().getUUID())));
visibilityList.remove(p);
}
return false;