Cats gifts dont call EntityDropItemEvent.

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Minor
    • None
    • Affects Version/s: None
    • None
    • This server is running CraftBukkit version git-Spigot-a93cbb1-7a6c3c9 (MC: 1.16.4) (Implementing API version 1.16.4-R0.1-SNAPSHOT)
    • Yes

      When cats drop gifts, no EntityDropItemEvent is called.

      EntityCat.java

                  List<ItemStack> list = loottable.populateLoot(loottableinfo_builder.build(LootContextParameterSets.GIFT));
                  Iterator iterator = list.iterator();
      
                  while (iterator.hasNext()) {
                      ItemStack itemstack = (ItemStack) iterator.next();
      
                      this.a.world.addEntity(new EntityItem(this.a.world, (double) blockposition_mutableblockposition.getX() - (double) MathHelper.sin(this.a.aA * 0.017453292F), (double) blockposition_mutableblockposition.getY(), (double) blockposition_mutableblockposition.getZ() + (double) MathHelper.cos(this.a.aA * 0.017453292F), itemstack));
                  }
      
      

            Assignee:
            Unassigned
            Reporter:
            Foorcee
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: