We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 85980b8 commit e410745Copy full SHA for e410745
2 files changed
src/Hebbinkpro/PocketMap/textures/model/CrossModel.php
@@ -76,7 +76,7 @@ public function getTopColors(GdImage $texture): array
76
if ($c === false) continue;
77
78
$index = imagecolorsforindex($texture, $c);
79
- if (isset($index["alpha"]) && $index["alpha"] < 127) {
+ if ($index["alpha"] < 127) {
80
$color = $c;
81
break;
82
}
src/Hebbinkpro/PocketMap/utils/block/BlockDataValues.php
@@ -231,7 +231,8 @@ public static function getDoublePlantDataValue(int $blockId): int
231
BlockTypeIds::GRASS => 2,
232
BlockTypeIds::FERN => 3,
233
BlockTypeIds::ROSE_BUSH => 4, // ROSE
234
- BlockTypeIds::PEONY => 5 // PAEONIA
+ BlockTypeIds::PEONY => 5, // PAEONIA
235
+ default => 0
236
};
237
238
0 commit comments