Fixed NullPointerException when breaking/placing certain skulls on Paper servers (fixes #643)
This commit is contained in:
parent
e5ec7ede72
commit
f729c8a126
1 changed files with 1 additions and 1 deletions
|
|
@ -34,7 +34,7 @@ public class Paper_v1_20 extends Paper_v1_17 implements PaperInterface {
|
||||||
if (skull.getPlayerProfile().getId() != null) {
|
if (skull.getPlayerProfile().getId() != null) {
|
||||||
owner = skull.getPlayerProfile().getId().toString();
|
owner = skull.getPlayerProfile().getId().toString();
|
||||||
}
|
}
|
||||||
else if (Config.getGlobal().MYSQL && owner.length() > 255) {
|
else if (Config.getGlobal().MYSQL && owner != null && owner.length() > 255) {
|
||||||
return owner.substring(0, 255);
|
return owner.substring(0, 255);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue