Releases: totemo/Doppelganger
v1.1.2
Add fix_drop_chance_bug
configuration option.
This setting (default false) enables special handling of mob drops with near-unity (> 0.999) drop chance; on mob death, they are taken from the mob inventory and added to the drops collection, bypassing vanilla/Spigot/PaperSpigot drop code which has been buggy in the past. See: https://hub.spigotmc.org/jira/browse/SPIGOT-5298.
Unfortunately, in fixing a bug in skull comparison (https://hub.spigotmc.org/jira/browse/SPIGOT-5403:
ItemStack.isSimilar()
returned true for different skulls), Spigot managed to introduce the opposite bug: isSimilar() returning false for identical skulls. That breaks this drop chance bug fix. That new Spigot bug persisted for a few days after Dec 6, 2019, before it was fixed by the Spigot project. During that small window, the PaperSpigot project pulled the buggy Spigot code and consequently ItemStack.isSimilar()
is wrong for skulls in PaperSpigot builds 234 through 243. PaperSpigot has ceased development of 1.14.4 builds, meaning that the last ten PaperSpigot builds for 1.14.4 are not useable with this option enabled.
v1.1.1
v1.1.0
1.0.0
0.11.0
0.10.0 - Compatibility with Minecraft 1.9.
- Deprecated integer overloads of entity health APIs no longer exist in Spigot 1.9, so use the double overloads instead.
- Numerous other deprecation warnings have been fixed.
- Support for setting the item in the off hand has been added, denoted as the section named "shield" in the configuration.
- The configuration example now illustrates setting the shield item and adjusts sounds to their new names in the 1.9 API.
- Add predefined creature types for all professions of villagers and zombies including baby variants of each.
0.9.2
Bug fix for item duplication issue.
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%.