From 3ff557be9d8bce8752388fc8d6377ae0b16eaf75 Mon Sep 17 00:00:00 2001 From: Dries C Date: Mon, 11 Nov 2024 14:39:21 +0100 Subject: [PATCH] Fix campfire --- src/block/tile/Campfire.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/block/tile/Campfire.php b/src/block/tile/Campfire.php index ad4a193d7b8..e78eb90acc6 100644 --- a/src/block/tile/Campfire.php +++ b/src/block/tile/Campfire.php @@ -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, @@ -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)); } } }