Skip to content

Commit b4cb38a

Browse files
committed
Tag may be null on CombatTagPlus
Fixes #4
1 parent 6903480 commit b4cb38a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

base/src/main/java/net/techcable/spawnshield/CombatAPI.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public static long getRemainingTagTime(Player player) {
9393
return timeLeft;
9494
} else if (hasCombatTagPlus()){
9595
Object tag = getTag(player.getUniqueId());
96+
if (tag == null) return -1;
9697
if (getTagDurationMethod == null) {
9798
getTagDurationMethod = makeMethod(Reflection.getClass("net.minelink.ctplus.Tag"), "getTagDuration");
9899
}

0 commit comments

Comments
 (0)