mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-27 10:41:27 +01:00
Remove extra addFreshEntity call in DefaultDispenseItemBehavior
This commit is contained in:
parent
1d6c40afac
commit
6d7c3255f6
@ -52,10 +52,10 @@
|
||||
double d = position.x();
|
||||
double d1 = position.y();
|
||||
double d2 = position.z();
|
||||
@@ -44,6 +_,45 @@
|
||||
@@ -43,7 +_,45 @@
|
||||
level.random.triangle(0.2, 0.0172275 * speed),
|
||||
level.random.triangle(facing.getStepZ() * d3, 0.0172275 * speed)
|
||||
);
|
||||
level.addFreshEntity(itemEntity);
|
||||
+ return itemEntity; // CraftBukkit
|
||||
+ }
|
||||
+
|
||||
@ -91,7 +91,7 @@
|
||||
+ return false;
|
||||
+ }
|
||||
+
|
||||
+ level.addFreshEntity(itemEntity);
|
||||
level.addFreshEntity(itemEntity);
|
||||
+
|
||||
+ return true;
|
||||
+ // CraftBukkit end
|
||||
|
Loading…
Reference in New Issue
Block a user