Skip to content

Commit e410745

Browse files
committed
Fix PHPStan errors
1 parent 85980b8 commit e410745

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

src/Hebbinkpro/PocketMap/textures/model/CrossModel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ public function getTopColors(GdImage $texture): array
7676
if ($c === false) continue;
7777

7878
$index = imagecolorsforindex($texture, $c);
79-
if (isset($index["alpha"]) && $index["alpha"] < 127) {
79+
if ($index["alpha"] < 127) {
8080
$color = $c;
8181
break;
8282
}

src/Hebbinkpro/PocketMap/utils/block/BlockDataValues.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,7 +231,8 @@ public static function getDoublePlantDataValue(int $blockId): int
231231
BlockTypeIds::GRASS => 2,
232232
BlockTypeIds::FERN => 3,
233233
BlockTypeIds::ROSE_BUSH => 4, // ROSE
234-
BlockTypeIds::PEONY => 5 // PAEONIA
234+
BlockTypeIds::PEONY => 5, // PAEONIA
235+
default => 0
235236
};
236237
}
237238

0 commit comments

Comments
 (0)