Bug Verified

Drops section of a Mythic mob no longer accepts "(item) (chance)" format, and now requires "(item) (amount) (chance)"

#6580 opened by Unknown 1 year ago

Unknownreported this bug

Summary

Describe the bug encountered in detail.

I have Mythic mobs who use the format of (item) (chance) for some of their drops, but I have noticed that they are no longer dropping the items like they used to. Upon changing the format of the drops to (item) (amount) (chance), the items now drop.

Steps to reproduce

Provide a full set of steps used to reproduce the bug, including links to SEPARATE Pastebin pastes for each relevant configuration file.

Create a test mob who drops a diamond with a 50% chance like such: https://pastebin.com/03zeU8xx Reload the plugin, spawn the mob in, kill it enough times to confirm the diamond does not drop.

Then, change the Drops section to have "1" as the amount for the diamond, as such: https://pastebin.com/8T9rGKrf Reload the plugin, spawn the mob in, kill it enough times to confirm that the diamond does drop now.

Current behavior

Describe what happens currently, while the bug is affecting your server.

Drops with a format such as ItemName 0.5 no longer drop at all.

Intended correct behavior

Describe what you think should happen instead of the bug.

Drops with a format such as ItemName 0.5 should still drop, as they have in the past.

Server log file

Provide a link to a Pastebin paste with a copy of your server's latest.log file from startup to "Done!" AND includes a player connecting.

https://paste.denizenscript.com/View/135819

Debug log snippet

Provide a link to a Pastebin paste with an excerpt of your latest.log file that includes debug output where you trigger the bugged behavior.

https://paste.denizenscript.com/View/135820

Proposed fixes

Describe what you think the issue or any potential fixes may be.

Allow the format of (item) (chance) to work again, without requiring the (amount), by using a default amount of 1, as it was before.

Unknowncommented

I confirm this is a bug, or a change that messes with backwards compat, MythicMobs 5.3.0 did have this working, but I did not find the exact version where it changed.

Sign in to join the discussion.