Skip to content

Commit 6c2f917

Browse files
committed
Removed default skin and cape size from HD check
1 parent a5ff615 commit 6c2f917

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/Configs/TextureConfig.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,13 @@ class TextureConfig
1919
];
2020
public const SIZE_WITH_HD = [
2121
'skin' => [
22-
['w' => 64, 'h' => 64], ['w' => 64, 'h' => 32],
2322
['w' => 128, 'h' => 64], ['w' => 128, 'h' => 128],
2423
['w' => 256, 'h' => 128], ['w' => 256, 'h' => 256],
2524
['w' => 512, 'h' => 256], ['w' => 512, 'h' => 512],
2625
['w' => 1024, 'h' => 512], ['w' => 1024, 'h' => 1024]
2726
],
2827
'cape' => [
29-
['w' => 64, 'h' => 32], ['w' => 128, 'h' => 64], ['w' => 256, 'h' => 128],
28+
['w' => 128, 'h' => 64], ['w' => 256, 'h' => 128],
3029
['w' => 512, 'h' => 256], ['w' => 1024, 'h' => 512]
3130
]
3231
];

src/Utils/Texture.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ public static function validateSize($width, $height, $type)
3939
if (!$valid_size) throw new TextureSizeException;
4040
return $valid_size;
4141
}
42-
public static function validateToHDSize($width, $height, $type)
42+
public static function validateHDSize($width, $height, $type)
4343
{
4444
$valid_size = false;
4545
foreach (TextureConfig::SIZE_WITH_HD[$type] as $key => $value) {

0 commit comments

Comments
 (0)