mirror of
https://github.com/PaperMC/Paper.git
synced 2024-09-19 18:31:18 +02:00
Implement default title for custom merchants
This commit is contained in:
parent
6220b5c542
commit
7359112e8c
@ -1484,7 +1484,7 @@ public final class CraftServer implements Server {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Merchant createMerchant(String title) {
|
public Merchant createMerchant(String title) {
|
||||||
return new CraftMerchantCustom(title);
|
return new CraftMerchantCustom(title == null ? InventoryType.MERCHANT.getDefaultTitle() : title);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
Loading…
Reference in New Issue
Block a user