File tree Expand file tree Collapse file tree 1 file changed +2
-9
lines changed
Expand file tree Collapse file tree 1 file changed +2
-9
lines changed Original file line number Diff line number Diff line change 2929use pocketmine \entity \Explosive ;
3030use pocketmine \entity \Living ;
3131use pocketmine \entity \Location ;
32+ use pocketmine \entity \NeverSavedWithChunkEntity ;
3233use pocketmine \event \entity \EntityDamageByEntityEvent ;
3334use pocketmine \event \entity \EntityDamageEvent ;
3435use pocketmine \item \FireworkRocket as FireworkItem ;
4647use function count ;
4748use function sqrt ;
4849
49- class FireworkRocket extends Entity implements Explosive{
50+ class FireworkRocket extends Entity implements Explosive, NeverSavedWithChunkEntity {
5051
5152 public static function getNetworkTypeId () : string { return EntityIds::FIREWORKS_ROCKET ; }
5253
@@ -113,14 +114,6 @@ public function setExplosions(array $explosions) : self{
113114 return $ this ;
114115 }
115116
116- /**
117- * TODO: The entity should be saved and loaded, but this is not possible.
118- * @see https://bugs.mojang.com/browse/MCPE-165230
119- */
120- public function canSaveWithChunk () : bool {
121- return false ;
122- }
123-
124117 protected function onFirstUpdate (int $ currentTick ) : void {
125118 parent ::onFirstUpdate ($ currentTick );
126119
You can’t perform that action at this time.
0 commit comments