mirror of
https://github.com/PaperMC/Paper.git
synced 2024-11-26 20:46:59 +01:00
Give turtle eggs a spawn reason
This commit is contained in:
parent
f68afdb0ca
commit
4d0e2b7d88
11
nms-patches/BlockTurtleEgg.patch
Normal file
11
nms-patches/BlockTurtleEgg.patch
Normal file
@ -0,0 +1,11 @@
|
|||||||
|
--- a/net/minecraft/server/BlockTurtleEgg.java
|
||||||
|
+++ b/net/minecraft/server/BlockTurtleEgg.java
|
||||||
|
@@ -72,7 +72,7 @@
|
||||||
|
entityturtle.setAgeRaw(-24000);
|
||||||
|
entityturtle.g(blockposition);
|
||||||
|
entityturtle.setPositionRotation((double) blockposition.getX() + 0.3D + (double) j * 0.2D, (double) blockposition.getY(), (double) blockposition.getZ() + 0.3D, 0.0F, 0.0F);
|
||||||
|
- world.addEntity(entityturtle);
|
||||||
|
+ world.addEntity(entityturtle, org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason.EGG); // CraftBukkit
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user