mirror of
https://github.com/NEZNAMY/TAB.git
synced 2026-11-26 10:29:49 -05:00
fixed NPE
This commit is contained in:
1 parent
729a7c01a0
commit
36d0a4162d
1 file changed
+2
-2
@@ -82,7 +82,7 @@ public class NameTagX implements Loadable, JoinEventListener, QuitEventListener,
|
||||
Shared.featureCpu.startRepeatingMeasuredTask(200, "refreshing nametag visibility", CPUFeature.NAMETAGX_INVISCHECK, new Runnable() {
|
||||
public void run() {
|
||||
for (ITabPlayer p : Shared.getPlayers()) {
|
||||
if (p.disabledNametag) continue;
|
||||
if (!p.onJoinFinished || p.disabledNametag) continue;
|
||||
p.getArmorStandManager().updateVisibility();
|
||||
}
|
||||
}
|
||||
@@ -90,7 +90,7 @@ public class NameTagX implements Loadable, JoinEventListener, QuitEventListener,
|
||||
Shared.featureCpu.startRepeatingMeasuredTask(200, "refreshing collision", CPUFeature.NAMETAG_COLLISION, new Runnable() {
|
||||
public void run() {
|
||||
for (ITabPlayer p : Shared.getPlayers()) {
|
||||
if (!p.onJoinFinished) continue;
|
||||
if (!p.onJoinFinished || p.disabledNametag) continue;
|
||||
boolean collision = p.getTeamPush();
|
||||
if (p.lastCollision != collision) {
|
||||
p.updateTeamData();
|
||||
|
||||
Reference in new issue
Block a user