Punctuation and spelling fix.
This commit is contained in:
parent
41821c8783
commit
c51f522874
|
@ -63,7 +63,7 @@ public class ChunkListener implements Listener {
|
|||
Player player = Bukkit.getPlayer(uuid);
|
||||
|
||||
if (npcChunk.getWorld() != player.getWorld()) {
|
||||
continue; // Player and NPC are not in the same world
|
||||
continue; // Player and NPC are not in the same world.
|
||||
}
|
||||
|
||||
double hideDistance = npc.getAutoHideDistance();
|
||||
|
|
|
@ -30,6 +30,7 @@ public class PlayerListener implements Listener {
|
|||
npc.getAutoHidden().remove(player.getUniqueId());
|
||||
}
|
||||
|
||||
// Don't need to use NPC#hide since the entity is not registered in the NMS server.
|
||||
if (npc.getShown().contains(player.getUniqueId())) {
|
||||
npc.getShown().remove(player.getUniqueId());
|
||||
}
|
||||
|
@ -41,7 +42,7 @@ public class PlayerListener implements Listener {
|
|||
Player player = event.getPlayer();
|
||||
World from = event.getFrom();
|
||||
|
||||
// The PlayerTeleportEvent is call, and will handle visiiblity in the new world
|
||||
// The PlayerTeleportEvent is call, and will handle visibility in the new world.
|
||||
for (NPC npc : NPCManager.getAllNPCs()) {
|
||||
if (npc.getLocation().getWorld() == from) {
|
||||
if (!npc.getAutoHidden().contains(player.getUniqueId())) {
|
||||
|
|
Loading…
Reference in New Issue