CortexPE / TeaSpoon

☕ A PLUGIN to Extend PMMP's Functionality without completely changing it.
GNU Affero General Public License v3.0
144 stars 100 forks source link

Fix mooshroom bug. #386

Closed iZeaoGamer closed 5 years ago

iZeaoGamer commented 5 years ago

Not sure why, how, and how long this bug has been there for, but this needed fixing. This bug only occurred if the mob attempted to die when a player were to kill them, it would then kick them for an internal server error. This could’ve been a change that pocketmine introduced, or simply it was a typo to how it should’ve been dealt with. getEnchantmentLevel() is better than getLevel() and works like a charm. You may want to test this out to see if it’s fixed, but on my end, it’s completely fixed. No errors, no nothing. Please merge this PR when ready. Thank you!