You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
+ // CraftBukkit start - Capture drops for death event
989
990
+ if (this instanceof net.minecraft.world.entity.LivingEntity && !this.forceDrops) {
990
991
+ // Paper start - Restore vanilla drops behavior
@@ -1001,7 +1002,6 @@
1001
1002
+ ItemEntity itemEntity = new ItemEntity(level, this.getX() + offset.x, this.getY() + offset.y, this.getZ() + offset.z, stack.copy()); // Paper - copy so we can destroy original
1002
1003
+ stack.setCount(0); // Paper - destroy this item - if this ever leaks due to game bugs, ensure it doesn't dupe
1003
1004
+
1004
-
itemEntity.setDefaultPickUpDelay();
1005
1005
+ itemEntity.setDefaultPickUpDelay(); // Paper - diff on change (in dropConsumer)
+ if (deathEvent == null || !deathEvent.isCancelled()) {
816
819
+ //if (entityliving != null) { // Paper - Fix item duplication and teleport issues; moved to be run earlier in #dropAllDeathLoot before destroying the drop items in CraftEventFactory#callEntityDeathEvent
+ if (entity instanceof net.minecraft.world.entity.monster.Creeper creeper && creeper.droppedSkulls) { // Creeper has logic for drops skull and need revert that flag
0 commit comments