diff --git a/src/block/tile/Beacon.php b/src/block/tile/Beacon.php index c2bb605f0..4d4b8cf6d 100644 --- a/src/block/tile/Beacon.php +++ b/src/block/tile/Beacon.php @@ -41,8 +41,8 @@ final class Beacon extends Spawnable{ public function readSaveData(CompoundTag $nbt) : void{ //TODO: PC uses Primary and Secondary (capitalized first letter), we don't read them here because the IDs would be different - $this->primaryEffect = $nbt->getInt(self::TAG_PRIMARY); - $this->secondaryEffect = $nbt->getInt(self::TAG_SECONDARY); + $this->primaryEffect = $nbt->getInt(self::TAG_PRIMARY, 0); + $this->secondaryEffect = $nbt->getInt(self::TAG_SECONDARY, 0); } protected function writeSaveData(CompoundTag $nbt) : void{