Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

confilt with customs blocks #427

Closed
Rtoxx opened this issue Dec 9, 2023 · 2 comments
Closed

confilt with customs blocks #427

Rtoxx opened this issue Dec 9, 2023 · 2 comments

Comments

@Rtoxx
Copy link

Rtoxx commented Dec 9, 2023

Hi, I've created a custom block, and when I place it, I get an error that crashes the server, due to your plugin.

Specifically, this error :

_pocketmine\network\mcpe\convert\TypeConversionException: "Item test:table is not a blockitem, but runtime ID 14089 was provided" (EXCEPTION) in "pmsrc/src/network/mcpe/convert/ItemTranslator" at line 117
--- Stack trace ---
  #0 pmsrc/src/network/mcpe/convert/TypeConverter(241): pocketmine\network\mcpe\convert\ItemTranslator->fromNetworkId(int 10742, int 0, int 14089)
  #1 plugins/PiggyCustomEnchants_PM5/src/DaPigGuy/PiggyCustomEnchants/utils/Utils(205): pocketmine\network\mcpe\convert\TypeConverter->netItemStackToCore(object pocketmine\network\mcpe\protocol\types\inventory\ItemStack#195486)
  #2 plugins/PiggyCustomEnchants_PM5/src/DaPigGuy/PiggyCustomEnchants/EventListener(93): DaPigGuy\PiggyCustomEnchants\utils\Utils::filterDisplayedEnchants(object pocketmine\network\mcpe\protocol\types\inventory\ItemStack#195486)
  #3 pmsrc/src/event/RegisteredListener(61): DaPigGuy\PiggyCustomEnchants\EventListener->onDataPacketReceive(object pocketmine\event\server\DataPacketReceiveEvent#93142)
  #4 pmsrc/src/event/Event(63): pocketmine\event\RegisteredListener->callEvent(object pocketmine\event\server\DataPacketReceiveEvent#93142)
  #5 pmsrc/src/network/mcpe/NetworkSession(437): pocketmine\event\Event->call()_

Could you solve this problem or tell me how to do it?

@Aericio
Copy link
Collaborator

Aericio commented Dec 10, 2023

I don't know how either, since I just copied how other plugins did it and I don't see what's wrong ¯_(ツ)_/¯

@Aericio
Copy link
Collaborator

Aericio commented Dec 10, 2023

This seems to be PMMP's problem, as I looked into previously: #426

@Aericio Aericio closed this as not planned Won't fix, can't repro, duplicate, stale Dec 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants