Skip to content

Commit

Permalink
Fix for 1.19.30
Browse files Browse the repository at this point in the history
  • Loading branch information
TwistedAsylumMC committed Sep 20, 2022
1 parent b6cf87e commit f803ad8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/block/CustomiesBlockFactory.php
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,9 @@ public function registerBlock(string $className, string $identifier, string $nam
->setString("category", $creativeInfo->getCategory())
->setString("group", $creativeInfo->getGroup()));
$propertiesTag->setTag("components", $components);
$propertiesTag->setTag("menu_category", CompoundTag::create()
->setString("category", $creativeInfo?->getCategory() ?? "")
->setString("group", $creativeInfo?->getGroup() ?? ""));
CreativeInventory::getInstance()->add($block->asItem());

$this->blockPaletteEntries[] = new BlockPaletteEntry($identifier, new CacheableNbt($propertiesTag));
Expand Down

0 comments on commit f803ad8

Please # to comment.