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