diff --git a/src/main/java/net/minecraft/server/EntityCreeper.java b/src/main/java/net/minecraft/server/EntityCreeper.java index a3519ab7..bda8be91 100644 --- a/src/main/java/net/minecraft/server/EntityCreeper.java +++ b/src/main/java/net/minecraft/server/EntityCreeper.java @@ -86,8 +86,11 @@ protected String i() { public void die(Entity entity) { super.die(entity); - if (entity instanceof EntitySkeleton) { - this.b(Item.GOLD_RECORD.id + this.random.nextInt(2), 1); + if (entity instanceof EntityArrow) { + EntityLiving shooter = ((EntityArrow) entity).shooter; + if (shooter instanceof EntitySkeleton) { + this.b(Item.GOLD_RECORD.id + this.random.nextInt(2), 1); + } } }