mcbeany-pm-pl / NBTEditor

A plugin that helps you to edit item's NBT in-game
MIT License
4 stars 1 forks source link

Value 1000 is outside the allowed range -128 - 127 #2

Open NhanAZ opened 2 years ago

NhanAZ commented 2 years ago

Error information

Message: Value 1000 is outside the allowed range -128 - 127 File: pmsrc/vendor/pocketmine/nbt/src/tag/IntegerishTagTrait Line: 46 Error level: pocketmine\nbt\InvalidTagValueException

#0 pmsrc/vendor/pocketmine/nbt/src/tag/CompoundTag(218): pocketmine\nbt\tag\ByteTag->__construct(int 1000)
#1 plugins/NBTEditor.phar/src/Mcbeany/NBTEditor/menus/EditTagMenu(93): pocketmine\nbt\tag\CompoundTag->setByte(string[5] Count, int 1000)
#2 plugins/NBTEditor.phar/src/Mcbeany/NBTEditor/menus/EditTagMenu(35): Mcbeany\NBTEditor\menus\EditTagMenu->onResponse(object Mcbeany\NBTEditor\libs\dktapps\pmforms\CustomFormResponse#127207)
#3 plugins/NBTEditor.phar/src/Mcbeany/NBTEditor/libs/dktapps/pmforms/CustomForm(124): Mcbeany\NBTEditor\menus\EditTagMenu->Mcbeany\NBTEditor\menus\{closure}(object pocketmine\player\Player#35063, object Mcbeany\NBTEditor\libs\dktapps\pmforms\CustomFormResponse#127207)
#4 pmsrc/src/player/Player(2011): Mcbeany\NBTEditor\libs\dktapps\pmforms\CustomForm->handleResponse(object pocketmine\player\Player#35063, array[2])
#5 pmsrc/src/network/mcpe/handler/InGamePacketHandler(871): pocketmine\player\Player->onFormSubmit(int 24, array[2])
#6 pmsrc/vendor/pocketmine/bedrock-protocol/src/ModalFormResponsePacket(46): pocketmine\network\mcpe\handler\InGamePacketHandler->handleModalFormResponse(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#133043)
#7 pmsrc/src/network/mcpe/NetworkSession(392): pocketmine\network\mcpe\protocol\ModalFormResponsePacket->handle(object pocketmine\network\mcpe\handler\InGamePacketHandler#132796)
#8 pmsrc/src/network/mcpe/NetworkSession(355): pocketmine\network\mcpe\NetworkSession->handleDataPacket(object pocketmine\network\mcpe\protocol\ModalFormResponsePacket#133043, string[17] e..[null,"1000"].)
#9 pmsrc/src/network/mcpe/raklib/RakLibInterface(182): pocketmine\network\mcpe\NetworkSession->handleEncoded(string[20] .L....+...Q2400P....)
#10 pmsrc/vendor/pocketmine/raklib-ipc/src/RakLibToUserThreadMessageReceiver(42): pocketmine\network\mcpe\raklib\RakLibInterface->onPacketReceive(int 0, string[29] .2..|!....vA)..X..SC..8...PC5)
#11 pmsrc/src/network/mcpe/raklib/RakLibInterface(112): raklib\server\ipc\RakLibToUserThreadMessageReceiver->handle(object pocketmine\network\mcpe\raklib\RakLibInterface#32199)
#12 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(123): pocketmine\network\mcpe\raklib\RakLibInterface->pocketmine\network\mcpe\raklib\{closure}()
#13 pmsrc/vendor/pocketmine/snooze/src/SleeperHandler(82): pocketmine\snooze\SleeperHandler->processNotifications()
#14 pmsrc/src/Server(1703): pocketmine\snooze\SleeperHandler->sleepUntil(float 1657945287.2301)
#15 pmsrc/src/Server(1063): pocketmine\Server->tickProcessor()
#16 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#3, object pocketmine\utils\MainLogger#2, string[8] /server/, string[16] /server/plugins/)
#17 pmsrc/src/PocketMine(327): pocketmine\server()
#18 pmsrc(11): require(string[45] phar:///server/server.phar/src/PocketMine.php)

https://crash.pmmp.io/view/7185936

Mcbeany commented 2 years ago

It could be a valid error because this plugin is not currently catching the error

NhanAZ commented 2 years ago

I suspect that there are many similar errors when I enter invalid input