Pocketmine-mp: Player starves while in creative mode

Created on 10 Jul 2019  路  3Comments  路  Source: pmmp/PocketMine-MP

Issue description

  • Expected result: Players hunger should never change while in creative mode
  • Actual result: Players hunger goes down while in creative mode

Steps to reproduce the issue

  1. Get into creative mode
  2. Run around until you can't sprint

OS and versions


Was tested on dev1.ams.pmmp.io

Gameplay Fixed

Most helpful comment

I found how to correctly reproduce the issue, follow these steps:

  1. Be in survival mode and be sure to have food level < max;
  2. Change gamemode to creative;
  3. Quit and join the game; (Important step)
  4. Fly at max speed and after some seconds you will fly automatically at normal speed.
  5. Change again your gamemode to survival and you will see you food bar is decreased.

All 3 comments

I found how to correctly reproduce the issue, follow these steps:

  1. Be in survival mode and be sure to have food level < max;
  2. Change gamemode to creative;
  3. Quit and join the game; (Important step)
  4. Fly at max speed and after some seconds you will fly automatically at normal speed.
  5. Change again your gamemode to survival and you will see you food bar is decreased.

This is due to the fact that Player::setGamemode is not called when a player joined.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

dktapps picture dktapps  路  3Comments

MisteFr picture MisteFr  路  3Comments

Hugheth picture Hugheth  路  3Comments

HipsterAF picture HipsterAF  路  3Comments

nmo0ory picture nmo0ory  路  3Comments