DaPigGuy / PiggyCustomEnchants

An open source custom enchantment plugin for PocketMine-MP
https://piggydocs.aericio.net/PiggyCustomEnchants.html
Apache License 2.0
103 stars 119 forks source link

crouching while using jettpack with empty fuel crashes the server #332

Closed TheUtopianPlayz closed 3 years ago

TheUtopianPlayz commented 3 years ago

Please make sure your issue complies with these guidelines:

Link to crashdump: https://crash.pmmp.io/view/4705781

Extra Information

pretty much as the title says, when ever u try to use jetpack while ur fuel is empty it causes the server to crash, im on the latest stable version of pmmp

Aericio commented 3 years ago

I also added a cooldown to prevent an issue where spamming shift key would allow you to infinitely fly.

If you feel that the cooldown is too long (default is 25), go to extra_data.json and modify jetpack.enableAmount.