mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-06 07:02:18 -07:00
Implement default title for custom merchants
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user