mirror of
https://github.com/CitizensDev/Citizens2.git
synced 2024-12-25 02:27:41 +01:00
Null check
This commit is contained in:
parent
b14f0bac9c
commit
65aa07a09d
@ -35,6 +35,9 @@ public class ClickRedirectTrait extends Trait {
|
||||
|
||||
@Override
|
||||
public void save(DataKey key) {
|
||||
key.removeKey("uuid");
|
||||
if (redirectNPC == null)
|
||||
return;
|
||||
key.setString("uuid", redirectNPC.getUniqueId().toString());
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user