mirror of
https://github.com/PaperMC/Paper.git
synced 2025-08-01 12:42:05 -07:00
Only add goat horn once (#12001)
This commit is contained in:
@@ -25,10 +25,11 @@
|
|||||||
this.playEatingSound();
|
this.playEatingSound();
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -350,7 +_,7 @@
|
@@ -349,8 +_,7 @@
|
||||||
|
double d1 = Mth.randomBetween(this.random, 0.3F, 0.7F);
|
||||||
double d2 = Mth.randomBetween(this.random, -0.2F, 0.2F);
|
double d2 = Mth.randomBetween(this.random, -0.2F, 0.2F);
|
||||||
ItemEntity itemEntity = new ItemEntity(this.level(), vec3.x(), vec3.y(), vec3.z(), itemStack, d, d1, d2);
|
ItemEntity itemEntity = new ItemEntity(this.level(), vec3.x(), vec3.y(), vec3.z(), itemStack, d, d1, d2);
|
||||||
this.level().addFreshEntity(itemEntity);
|
- this.level().addFreshEntity(itemEntity);
|
||||||
- return true;
|
- return true;
|
||||||
+ return this.spawnAtLocation((net.minecraft.server.level.ServerLevel) this.level(), itemEntity) != null; // Paper - Call EntityDropItemEvent
|
+ return this.spawnAtLocation((net.minecraft.server.level.ServerLevel) this.level(), itemEntity) != null; // Paper - Call EntityDropItemEvent
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user