tedo0627 / RedstoneCircuit

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

Error #77

Closed xS91D closed 2 years ago

xS91D commented 2 years ago

Describe the bug When i convert my world of pm3 to pm4 and join this world(in pm4)

To Reproduce image

OS and versions PocketMine-MP: 4.2.3 Server OS: Linux Plugin: Plugins (48): AceBlockLog v1.0.0, AceChestLocker v1.0.0, AceVIP v1.0.0, BetterVoting v2.0.2, BuilderTools v1.4.0-dev, ChatBridge v1.0.0, Cleaner v1.0.0, Core v1.3.0, Core_ban v1.0.0, CustomAlerts v2.1, DailyReward v1.0.0, DevTools v1.15.0, DiscordBot v2.1.1, EC v1.0.0, EconomyAPI v5.7.3-PM4, EconomyLand v2.1.2, EvdBeacon v0.0.1, Gift v1.0.0, Home v1.0.0, INether v1.0.1, Jail v1.0.0, Kit v1.0.0, LVIP v1.0.0_pm4, Level v1.0.0, Love v1.0.0, Menu v1.0.0, Mine v1.1.0, MoneySysteam v1.1.0, MultiWorld v1.7.0-beta4, OreManager v1.0.0, PiggyShopUI v1.0.0, ProtectWorld v1.0.0, RPG v1.0.0, RedstoneCircuit v3.0.2, RestartMe v1.3.0, RestrictedSkins v1.5.0, ScoreStatus v1.0.0, Skin v1.0.0, SuperTask v4.1.0, SuperWeapon v2.0.0, TP v1.1.0, TimeCommander v1.0.2, VanillaInventory v1.1.2, admin v1.1.1, f v1.0.0 v2, pm4_teaspoon v1.0.0, sendDiscord v1.0.0 Plugins

PocketMine-MP Crash Dump Fri Mar 11 23:49:09 CST 2022

Error: tedo0627\redstonecircuit\block\entity\BlockEntityMoving::setMovingBlockStates(): Argument https://github.com/tedo0627/RedstoneCircuit/issues/1 ($tag) must be of type pocketmine\nbt\tag\CompoundTag, null given, called in /home/ubuntu/myserver/plugins/RedstoneCircuit-master/src/tedo0627/redstonecircuit/block/entity/BlockEntityMoving.php on line 20 File: plugins/RedstoneCircuit-master/src/tedo0627/redstonecircuit/block/MovingBlockTrait Line: 58 Type: TypeError

THIS CRASH WAS CAUSED BY A PLUGIN BAD PLUGIN: RedstoneCircuit

Code: [49] [50] public function setMovingBlockName(string $name): void { [51] $this->movingBlockName = $name; [52] } [53] [54] public function getMovingBlockStates(): CompoundTag { [55] return $this->movingBlockStates; [56] } [57] [58] public function setMovingBlockStates(CompoundTag $tag): void { [59] $this->movingBlockStates = $tag; [60] } [61] [62] public function getMovingEntity(): ?CompoundTag { [63] return $this->movingEntity; [64] } [65] [66] public function setMovingEntity(?CompoundTag $tag): void { [67] $this->movingEntity = $tag; [68] }

Backtrace:

0 plugins/RedstoneCircuit-master/src/tedo0627/redstonecircuit/block/entity/BlockEntityMoving(20): tedo0627\redstonecircuit\block\entity\BlockEntityMoving->setMovingBlockStates(NULL )

https://github.com/tedo0627/RedstoneCircuit/issues/1 pmsrc/src/block/tile/TileFactory(131): tedo0627\redstonecircuit\block\entity\BlockEntityMoving->readSaveData(object pocketmine\nbt\tag\CompoundTag#120291) https://github.com/tedo0627/RedstoneCircuit/issues/2 pmsrc/src/world/World(2555): pocketmine\block\tile\TileFactory->createFromData(object pocketmine\world\World#100657, object pocketmine\nbt\tag\CompoundTag#120291) https://github.com/tedo0627/RedstoneCircuit/issues/3 pmsrc/src/world/World(2482): pocketmine\world\World->initChunk(integer -14, integer 10, object pocketmine\world\format\io\ChunkData#120999) https://github.com/tedo0627/RedstoneCircuit/issues/4 pmsrc/src/world/World(704): pocketmine\world\World->loadChunk(integer -14, integer 10) https://github.com/tedo0627/RedstoneCircuit/pull/5 pmsrc/src/player/Player(747): pocketmine\world\World->registerChunkLoader(object pocketmine\player\PlayerChunkLoader#96086, integer -14, integer 10, true) https://github.com/tedo0627/RedstoneCircuit/issues/6 pmsrc/src/player/Player(913): pocketmine\player\Player->requestChunks() https://github.com/tedo0627/RedstoneCircuit/issues/7 pmsrc/src/network/mcpe/NetworkSession(1063): pocketmine\player\Player->doChunkRequests() https://github.com/tedo0627/RedstoneCircuit/issues/8 pmsrc/src/network/NetworkSessionManager(67): pocketmine\network\mcpe\NetworkSession->tick() https://github.com/tedo0627/RedstoneCircuit/issues/9 pmsrc/src/network/Network(91): pocketmine\network\NetworkSessionManager->tick() https://github.com/tedo0627/RedstoneCircuit/issues/10 pmsrc/src/Server(1778): pocketmine\network\Network->tick() https://github.com/tedo0627/RedstoneCircuit/pull/11 pmsrc/src/Server(1657): pocketmine\Server->tick() https://github.com/tedo0627/RedstoneCircuit/issues/12 pmsrc/src/Server(1046): pocketmine\Server->tickProcessor() https://github.com/tedo0627/RedstoneCircuit/pull/13 pmsrc/src/PocketMine(304): pocketmine\Server->__construct(object BaseClassLoader#3, object pocketmine\utils\MainLogger#2, string[22] /home/ubuntu/myserver/, string[30] /home/ubuntu/myserver/plugins/) https://github.com/tedo0627/RedstoneCircuit/issues/14 pmsrc/src/PocketMine(327): pocketmine\server() https://github.com/tedo0627/RedstoneCircuit/pull/15 pmsrc(11): require(string[66] phar:///home/ubuntu/myserver/PocketMine-MP.phar/src/PocketMine.php)

tedo0627 commented 2 years ago

I don't have your converted worlds so I can't reproduce the bug, but I think this fixed it. Thank you.