When I'm creating an npc with customizable skin the server is closing, I'm giving the command /npc create npc Teste Teste.png Teste.json
Error: Unknown size
File: src/pocketmine/network/mcpe/protocol/types/SkinImage
Line: 61
Type: InvalidArgumentException
A PLUGIN WAS INVOLVED IN THIS CRASH
BAD PLUGIN: NPC v1.0.9
Code:
[52] return new self(32, 64, $data);
[53] case 64 * 64 * 4:
[54] return new self(64, 64, $data);
[55] case 128 * 64 * 4:
[56] return new self(64, 128, $data);
[57] case 128 * 128 * 4:
[58] return new self(128, 128, $data);
[59] }
[60]
[61] throw new \InvalidArgumentException("Unknown size");
[62] }
[63]
[64] public function getHeight() : int{
[65] return $this->height;
[66] }
[67]
[68] public function getWidth() : int{
[69] return $this->width;
[70] }
[71]
How do you reproduce it?
- Step 1: I'm using this geometry.json file:
{
"format_version": "1.10.0",
"geometryName": "Teste",
"Teste": {
"texturewidth": 16,
"textureheight": 16,
"visible_bounds_width": 2,
"visible_bounds_height": 1,
"visible_bounds_offset": [0, 0, 0],
"bones": [
{
"name": "unknown_bone",
"pivot": [0, 0, 0],
"cubes": [
{"origin": [-8, 0, -1], "size": [16, 16, 1], "uv": [0, 0]}
]
}
]
}
}
- Step 2: I using this image:
![Teste](https://user-images.githubusercontent.com/63585337/85209428-4f536180-b30e-11ea-9f28-0e78cbc8be92.png)
Your System information