Fix custom inventory holders (#6199)

This commit is contained in:
Jake Potrebic
2022-02-22 15:00:45 -08:00
parent 9489572907
commit e989331cd4
3 changed files with 338 additions and 36 deletions

View File

@@ -3278,11 +3278,6 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
+ // Paper start
+ public Inventory createInventory(InventoryHolder holder, InventoryType type, net.kyori.adventure.text.Component title) {
+ // Paper start
+ if (holder != null) {
+ return DEFAULT_CONVERTER.createInventory(holder, type, title);
+ }
+ //noinspection ConstantConditions // Paper end
+ return converterMap.get(type).createInventory(holder, type, title);
+ }
+ // Paper end