we want throwable to be null

This commit is contained in:
dordsor21 2020-12-11 16:51:13 +00:00
parent 6eb2958afc
commit cf70efabb0
No known key found for this signature in database
GPG Key ID: 1E53E88969FFCF0B

View File

@ -303,7 +303,7 @@ public class PlotListener {
userConsumer.accept(MINI_MESSAGE.stripTokens(TranslatableCaption.of("info.server").getComponent(player))); userConsumer.accept(MINI_MESSAGE.stripTokens(TranslatableCaption.of("info.server").getComponent(player)));
} else { } else {
PlotSquared.get().getImpromptuUUIDPipeline().getSingle(plot.getOwner(), (user, throwable) -> { PlotSquared.get().getImpromptuUUIDPipeline().getSingle(plot.getOwner(), (user, throwable) -> {
if (throwable == null) { if (throwable != null) {
userConsumer.accept("Unknown"); userConsumer.accept("Unknown");
} else { } else {
userConsumer.accept(user); userConsumer.accept(user);