Sergittos / BedWars

🛏️ BedWars for PocketMine-MP
GNU Lesser General Public License v3.0
25 stars 6 forks source link

Server Crash when teleporting #35

Closed ClydeNoIQ closed 6 months ago

ClydeNoIQ commented 6 months ago

Describe the bug The server crashes if a player (which is not playing the game) teleports to a player playing the game, the server will crash (Collected from MixedMC Games)

To Reproduce

  1. Join the server and play BedWars
  2. Leave the game and teleport to a player playing the game

Expected behavior Teleporting should have no issues

Additional context Crash dump: Wed_Feb_14-13.43.52-UTC_2024.log

xwertxy commented 6 months ago

This is debugged, reproduced by me. I think $team variable is returning null.

Sergittos commented 6 months ago

Fixed in the last commit, thanks!