Skip to content

Bug fix for item duplication issue.

Compare
Choose a tag to compare
@totemo totemo released this 28 May 14:42
· 12 commits to master since this release

This release fixes an item duplication bug in Doppelganger's handling of dropped items. The bug is in Doppelganger code that attempts to work-around a flaw in vanilla Minecraft code - that items are not always dropped even though the drop chance is 100%.

A change in the behaviour of the EntityDeathEvent Bukkit API in Bukkit/CraftBukkit@d611cff invalidated an assumption in the Doppelganger code (that the drops list does not include the mob equipment), leading to the equipment being dropped twice.

The issue and fix are described in more detail in 2f358f2.

Because Doppelganger now collapses duplicate drops to a single item, it is advisable not to spawn a Doppelganger with both an empty hand and a non-wearable item in one of its armour slots. If a second, identically configured Doppelganger was killed nearby, the Doppelganger could pick up the item, while also having an identical item in, say its boots slot, and then only one of the items would drop, even if they both had a drop chance of 100%.