Bug Closed · Resolved

Can't get drop for MMOItems v6 from MM

#831 opened by Unknown 6 years ago

Unknownreported this bug

Summary

I can't get drops for MMOITEMS v6 from MM.

Steps to reproduce

When running the command for getting a droptable /mm i get DesertiaDrop, it doesn't drop the said item. Config: [Legacy attachment omitted]

Current behavior

Console log error, and item doesn't drop

Intended correct behavior

MM should be able to read items from MI

Server log file

https://pastebin.com/M192aNTJ

Debug log snippet

https://paste.md-5.net/efisavinum.cs

Proposed fixes

There's an update for MMOItems which is causing it to be like that. The method is now getItem(@Nullable PlayerData, int amount)

Unknowncommented

With MI 6, generating an item now uses a PlayerData instance in case the level of the item being generated must scale on the player's RPG level. The new method is getItem(@Nullable PlayerData player, int amount). The provided playerData can be null but it's really best to provide one using PlayerData.get(Player) if the DropMetadata instance has got one saved, otherwise items being dropped by MythicMobs won't be able to scale with the player's level.

Sign in to join the discussion.