Fixed name being null occasionally in anvils

This commit is contained in:
Auxilor 2021-01-12 19:32:45 +00:00
parent c737474119
commit 363aa37fa8

View File

@ -67,6 +67,10 @@ public class AnvilListeners extends PluginDependent implements Listener {
return;
}
if (name == null) {
name = "";
}
Pair<ItemStack, Integer> newOut = AnvilMerge.doMerge(left, right, out, name, player);
if (newOut.getFirst() == null) {