[SPIGOT-758] event.getDrops().clear() and charged creepers Created: 01/Apr/15 Updated: 13/Apr/15 Resolved: 13/Apr/15 |
|
| Status: | Closed |
| Project: | Spigot |
| Component/s: | None |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Bug | ||
| Reporter: | Bobcat00 | Assignee: | Thinkofname |
| Resolution: | Fixed | Votes: | 0 |
| Labels: | None | ||
| Environment: |
Windows 7 |
||
| Plugin: | MobArena |
| Description |
|
New in 1.8 is that charged creeper explosions will cause a zombie, skeleton, wither skeleton, or other creeper to drop the corresponding mob head, one per explosion. However, when EntityDeathEvent calls event.getDrops().clear(), these new drops are not cleared and a head is dropped. I tested it with zombies and skeletons; they drop heads. I presume the others will, too. |
| Comments |
| Comment by md_5 [ 09/Apr/15 ] |
|
Not an easy fix due to how the NMS code works |
| Comment by Bobcat00 [ 01/Apr/15 ] |
|
Minor correction: I tested this with creepers and skeletons, they each drop heads (but they shouldn't). |