compile fixes
This commit is contained in:
@@ -5260,7 +5260,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ public Inventory createInventory(InventoryHolder owner, InventoryType type, net.kyori.adventure.text.Component title) {
|
||||
+ Container te = getTileEntity();
|
||||
+ if (te instanceof RandomizableContainerBlockEntity) {
|
||||
+ ((RandomizableContainerBlockEntity) te).setCustomName(io.papermc.paper.adventure.PaperAdventure.asVanilla(title));
|
||||
+ ((RandomizableContainerBlockEntity) te).name = io.papermc.paper.adventure.PaperAdventure.asVanilla(title);
|
||||
+ }
|
||||
+
|
||||
+ return getInventory(te);
|
||||
@@ -5296,7 +5296,7 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+ // BrewingStand does not extend TileEntityLootable
|
||||
+ Container tileEntity = getTileEntity();
|
||||
+ if (tileEntity instanceof BrewingStandBlockEntity) {
|
||||
+ ((BrewingStandBlockEntity) tileEntity).setCustomName(io.papermc.paper.adventure.PaperAdventure.asVanilla(title));
|
||||
+ ((BrewingStandBlockEntity) tileEntity).name = io.papermc.paper.adventure.PaperAdventure.asVanilla(title);
|
||||
+ }
|
||||
+ return getInventory(tileEntity);
|
||||
+ }
|
||||
|
||||
Reference in New Issue
Block a user