mirror of
https://github.com/Auxilor/EcoEnchants.git
synced 2025-01-11 23:00:36 +01:00
Fixed name being null occasionally in anvils
This commit is contained in:
parent
c737474119
commit
363aa37fa8
@ -67,6 +67,10 @@ public class AnvilListeners extends PluginDependent implements Listener {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (name == null) {
|
||||||
|
name = "";
|
||||||
|
}
|
||||||
|
|
||||||
Pair<ItemStack, Integer> newOut = AnvilMerge.doMerge(left, right, out, name, player);
|
Pair<ItemStack, Integer> newOut = AnvilMerge.doMerge(left, right, out, name, player);
|
||||||
|
|
||||||
if (newOut.getFirst() == null) {
|
if (newOut.getFirst() == null) {
|
||||||
|
Loading…
Reference in New Issue
Block a user