Implement default title for custom merchants

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2016-11-22 10:53:36 +11:00
parent 22dd0c1849
commit fe2d118352

View file

@ -1484,7 +1484,7 @@ public final class CraftServer implements Server {
@Override
public Merchant createMerchant(String title) {
return new CraftMerchantCustom(title);
return new CraftMerchantCustom(title == null ? InventoryType.MERCHANT.getDefaultTitle() : title);
}
@Override