Wertzui123 / PMMP5Converter

Automatically convert your PocketMine-MP 4 plugins to API 5
MIT License
12 stars 1 forks source link

Invalid conversion: not adding null values for missing arguments to `upgradeItemTypeDataInt` #3

Closed GabBiswajit closed 1 year ago

GabBiswajit commented 1 year ago

ItemFactory::getInstance()->get(299, 0, 1); This Code Change To : GlobalItemDataHandlers::getDeserializer()->deserializeStack(GlobalItemDataHandlers::getUpgrader()->upgradeItemTypeDataInt(299, 0, 1)); And This make this crash :


File: pmsrc/src/data/bedrock/item/upgrade/ItemDataUpgrader
Line: 90
Type: ArgumentCountError```
GabBiswajit commented 1 year ago

@Wertzui123

Wertzui123 commented 1 year ago

yeah, it's not adding a null for the compound tag