3
0
Mirror von https://github.com/PaperMC/Paper.git synchronisiert 2024-12-18 20:40:08 +01:00

SPIGOT-4389: Fix empty custom inventory title

Dieser Commit ist enthalten in:
md_5 2018-09-23 19:14:32 +10:00
Ursprung fc10dec5f3
Commit 7d506c6cd7

Datei anzeigen

@ -61,7 +61,7 @@ public class CraftInventoryCustom extends CraftInventory {
public MinecraftInventory(InventoryHolder owner, int size, String title) { public MinecraftInventory(InventoryHolder owner, int size, String title) {
Validate.notNull(title, "Title cannot be null"); Validate.notNull(title, "Title cannot be null");
this.items = NonNullList.a(size, ItemStack.a); this.items = NonNullList.a(size, ItemStack.a);
this.title = CraftChatMessage.fromStringOrNull(title); this.title = CraftChatMessage.fromString(title)[0];
this.viewers = new ArrayList<HumanEntity>(); this.viewers = new ArrayList<HumanEntity>();
this.owner = owner; this.owner = owner;
this.type = InventoryType.CHEST; this.type = InventoryType.CHEST;