Skip to content

Commit

Permalink
Fix campfire
Browse files Browse the repository at this point in the history
  • Loading branch information
dries-c committed Nov 11, 2024
1 parent 5128874 commit 3ff557b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/block/tile/Campfire.php
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ protected function writeSaveData(CompoundTag $nbt) : void{
}
}

protected function addAdditionalSpawnData(CompoundTag $nbt) : void{
protected function addAdditionalSpawnData(CompoundTag $nbt, TypeConverter $typeConverter) : void{
foreach([
0 => self::TAG_FIRST_INPUT_ITEM,
1 => self::TAG_SECOND_INPUT_ITEM,
Expand All @@ -136,7 +136,7 @@ protected function addAdditionalSpawnData(CompoundTag $nbt) : void{
] as $slot => $tag){
$item = $this->inventory->getItem($slot);
if(!$item->isNull()){
$nbt->setTag($tag, TypeConverter::getInstance()->getItemTranslator()->toNetworkNbt($item));
$nbt->setTag($tag, $typeConverter->getItemTranslator()->toNetworkNbt($item));
}
}
}
Expand Down

0 comments on commit 3ff557b

Please sign in to comment.