tedo0627 / RedstoneCircuit

This is the PocketMine plugin that implements the Redstone circuit.
GNU General Public License v3.0
84 stars 47 forks source link

Not compatible with 1.19.70 #110

Closed justin-eckenweber closed 1 year ago

justin-eckenweber commented 1 year ago

Reproduce: Put the plugin on a 1.19.70 server

Error:

[15:22:49.387] [Server thread/INFO]: Loading RedstoneCircuit v3.0.6
[15:22:49.413] [Server thread/CRITICAL]: ErrorException: "file_get_contents(phar:///home/ubuntu/pmmp/PocketMine-MP.phar/vendor/pocketmine/bedrock-data/block_id_map.json): Failed to open stream: phar error: "vendor/pocketmine/bedrock-data/block_id_map.json" is not a file in phar "/home/ubuntu/pmmp/PocketMine-MP.phar"" (EXCEPTION) in "plugins/RedstoneCircuit.phar/src/tedo0627/redstonecircuit/block/BlockTable" at line 30
--- Stack trace ---
  #0 (): pocketmine\errorhandler\ErrorToExceptionHandler::handle(int 2, string[259] file_get_contents(phar:///home/ubuntu/pmmp/PocketMine-MP.phar/vendor/pocketmine/, string[103] phar:///home/ubuntu/pmmp/plugins/RedstoneCircuit.phar/src/tedo0627/redstonecircu, int 30)
  #1 plugins/RedstoneCircuit.phar/src/tedo0627/redstonecircuit/block/BlockTable(30): file_get_contents(string[92] phar:///home/ubuntu/pmmp/PocketMine-MP.phar/vendor/pocketmine/bedrock-data/block)
  #2 pmsrc/src/utils/SingletonTrait(31): tedo0627\redstonecircuit\block\BlockTable->__construct()
  #3 pmsrc/src/utils/SingletonTrait(36): tedo0627\redstonecircuit\block\BlockTable::make()
  #4 plugins/RedstoneCircuit.phar/src/tedo0627/redstonecircuit/RedstoneCircuit(237): tedo0627\redstonecircuit\block\BlockTable::getInstance()
  #5 plugins/RedstoneCircuit.phar/src/tedo0627/redstonecircuit/RedstoneCircuit(186): tedo0627\redstonecircuit\RedstoneCircuit::registerMappings()
  #6 pmsrc/src/plugin/PluginBase(76): tedo0627\redstonecircuit\RedstoneCircuit->onLoad()
  #7 pmsrc/src/plugin/PluginManager(216): pocketmine\plugin\PluginBase->__construct(object pocketmine\plugin\PharPluginLoader#21863, object pocketmine\Server#12, object pocketmine\plugin\PluginDescription#21970, string[45] /home/ubuntu/pmmp/plugin_data/RedstoneCircuit, string[53] phar:///home/ubuntu/pmmp/plugins/RedstoneCircuit.phar, object pocketmine\plugin\DiskResourceProvider#134310)
  #8 pmsrc/src/plugin/PluginManager(368): pocketmine\plugin\PluginManager->internalLoadPlugin(string[46] /home/ubuntu/pmmp/plugins/RedstoneCircuit.phar, object pocketmine\plugin\PharPluginLoader#21863, object pocketmine\plugin\PluginDescription#21970)
  #9 pmsrc/src/Server(1008): pocketmine\plugin\PluginManager->loadPlugins(string[26] /home/ubuntu/pmmp/plugins/, int 0)
  #10 pmsrc/src/PocketMine(339): pocketmine\Server->__construct(object BaseClassLoader#2, object pocketmine\utils\MainLogger#5, string[18] /home/ubuntu/pmmp/, string[26] /home/ubuntu/pmmp/plugins/)
  #11 pmsrc/src/PocketMine(362): pocketmine\server()
  #12 pmsrc(11): require(string[62] phar:///home/ubuntu/pmmp/PocketMine-MP.phar/src/PocketMine.php)
--- End of exception information ---
[15:22:49.413] [Server thread/EMERGENCY]: An unrecoverable error has occurred and the server has crashed. Creating a crash dump
[15:22:49.416] [Server thread/EMERGENCY]: Please upload the "/home/ubuntu/pmmp/crashdumps/Sun_Mar_19-15.22.49-CET_2023.log" file to the Crash Archive and submit the link to the Bug Reporting page. Give as much info as you can.
[15:22:49.855] [Server thread/EMERGENCY]: The crash dump has been automatically submitted to the Crash Archive. You can view it on https://crash.pmmp.io/view/8476392 or use the ID #8476392.
[15:22:49.855] [Server thread/EMERGENCY]: Forcing server shutdown
tedo0627 commented 1 year ago

Already fixed in #109.