Fix exception message

This commit is contained in:
filoghost 2021-08-26 13:59:08 +02:00
parent 76381660a3
commit 11abb356d6

View File

@ -42,7 +42,7 @@ class DefaultHolographicDisplaysAPI implements HolographicDisplaysAPI {
@Override
public @NotNull Hologram createHologram(@NotNull Position position) {
Preconditions.notNull(position, "position");
Preconditions.notNull(position.getWorldName(), "position world name");
Preconditions.notNull(position.getWorldName(), "position.getWorldName()");
Preconditions.checkMainThread("async hologram creation");
return apiHologramManager.createHologram(new ImmutablePosition(position), plugin);