mirror of
https://github.com/PaperMC/Paper.git
synced 2025-03-13 11:18:23 +01:00
SPIGOT-4389: Fix empty custom inventory title
By: md_5 <git@md-5.net>
This commit is contained in:
parent
1447b01a56
commit
f30fa96d60
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ public class CraftInventoryCustom extends CraftInventory {
|
|||
public MinecraftInventory(InventoryHolder owner, int size, String title) {
|
||||
Validate.notNull(title, "Title cannot be null");
|
||||
this.items = NonNullList.a(size, ItemStack.a);
|
||||
this.title = CraftChatMessage.fromStringOrNull(title);
|
||||
this.title = CraftChatMessage.fromString(title)[0];
|
||||
this.viewers = new ArrayList<HumanEntity>();
|
||||
this.owner = owner;
|
||||
this.type = InventoryType.CHEST;
|
||||
|
|
Loading…
Add table
Reference in a new issue