mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 10:17:38 +01:00
Fix spawn reason for mob eggs
By: Thinkofdeath <thinkofdeath@spigotmc.org>
This commit is contained in:
parent
22718ff198
commit
eb81446ffc
@ -1,5 +1,5 @@
|
|||||||
--- ../work/decompile-8eb82bde//net/minecraft/server/ItemMonsterEgg.java 2014-11-28 17:43:43.241707432 +0000
|
--- ../work/decompile-8eb82bde//net/minecraft/server/ItemMonsterEgg.java 2014-12-03 10:52:09.804159084 +0000
|
||||||
+++ src/main/java/net/minecraft/server/ItemMonsterEgg.java 2014-11-28 17:38:19.000000000 +0000
|
+++ src/main/java/net/minecraft/server/ItemMonsterEgg.java 2014-12-03 10:51:53.380159449 +0000
|
||||||
@@ -19,7 +19,8 @@
|
@@ -19,7 +19,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -23,3 +23,12 @@
|
|||||||
if (!EntityTypes.eggInfo.containsKey(Integer.valueOf(i))) {
|
if (!EntityTypes.eggInfo.containsKey(Integer.valueOf(i))) {
|
||||||
return null;
|
return null;
|
||||||
} else {
|
} else {
|
||||||
|
@@ -123,7 +130,7 @@
|
||||||
|
entityinsentient.aI = entityinsentient.yaw;
|
||||||
|
entityinsentient.aG = entityinsentient.yaw;
|
||||||
|
entityinsentient.prepare(world.E(new BlockPosition(entityinsentient)), (GroupDataEntity) null);
|
||||||
|
- world.addEntity(entity);
|
||||||
|
+ world.addEntity(entity, spawnReason); // CraftBukkit
|
||||||
|
entityinsentient.x();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user