fix code when Herobrine hiding.
This commit is contained in:
parent
29bf773fb6
commit
bbdf5d14c7
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user