Give turtle eggs a spawn reason

By: md_5 <git@md-5.net>
This commit is contained in:
CraftBukkit/Spigot 2018-07-29 10:50:56 +10:00
parent c09fac2858
commit 0e2c1a2de9

View 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
}
}
}