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

ReflectionException - Property pocketmine\network\mcpe\convert\BlockStateDictionary::$stateDataToStateIdLookupCache does not exist #4

Closed
markeev opened this issue May 8, 2023 · 4 comments

Comments

@markeev
Copy link

markeev commented May 8, 2023

Description

When running the server with the Customies-NG-pm5 plugin, a ReflectionException occurs, causing the server to crash. The error message states that the property pocketmine\network\mcpe\convert\BlockStateDictionary::$stateDataToStateIdLookupCache does not exist.

Steps to Reproduce

Set up a server with the NG-PM and Customies-NG-pm5 plugin and add a custom Block.
Start the server.
Observe the server crashing with a ReflectionException.

Expected Behavior

The server should start without any issues, and the Customies-NG-pm5 plugin should function properly.

Actual Behavior

The server crashes with a ReflectionException related to the pocketmine\network\mcpe\convert\BlockStateDictionary::$stateDataToStateIdLookupCache property.

StackTrace

  • plugins/Customies-NG-pm5/src/block/BlockPalette(47): ReflectionProperty->__construct(object pocketmine\network\mcpe\convert\BlockStateDictionary#141371, string[29] stateDataToStateIdLookupCache)
  • pmsrc/src/utils/SingletonTrait(31): customiesdevs\customies\block\BlockPalette->__construct()
  • pmsrc/src/utils/SingletonTrait(36): customiesdevs\customies\block\BlockPalette::make()
  • plugins/Customies-NG-pm5/src/block/CustomiesBlockFactory(156): customiesdevs\customies\block\BlockPalette::getInstance()
  • plugins/UniqueItems/src/radovinetch/block/CustomBlock(22): customiesdevs\customies\block\CustomiesBlockFactory->registerBlock(object Closure#57278, string[24] servername:block_exemple, object customiesdevs\customies\block\Model#57273, object customiesdevs\customies\item\CreativeInventoryInfo#57276)
@DavyCraft648
Copy link
Owner

Thanks, I forgot to commit the changes I made to fix this
I'll push it while I'm on my laptop

DavyCraft648 added a commit that referenced this issue May 8, 2023
@markeev
Copy link
Author

markeev commented May 8, 2023

Please try to run with PM-NG. I am getting a lot of errors.

@DavyCraft648
Copy link
Owner

Can you send it? I don't get any error

@markeev
Copy link
Author

markeev commented May 15, 2023

The errors disappeared when I installed the older PHP binaries as you wrote.

@markeev markeev closed this as completed May 15, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants