2021-03-16 09:00:00 +11:00
|
|
|
--- a/net/minecraft/world/level/block/BlockMonsterEggs.java
|
|
|
|
+++ b/net/minecraft/world/level/block/BlockMonsterEggs.java
|
2022-06-08 02:00:00 +10:00
|
|
|
@@ -16,6 +16,8 @@
|
2021-03-16 09:00:00 +11:00
|
|
|
import net.minecraft.world.level.block.state.IBlockData;
|
2021-06-11 15:00:00 +10:00
|
|
|
import net.minecraft.world.level.block.state.properties.IBlockState;
|
2014-11-26 08:32:16 +11:00
|
|
|
|
|
|
|
+import org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; // CraftBukkit
|
|
|
|
+
|
|
|
|
public class BlockMonsterEggs extends Block {
|
|
|
|
|
2021-06-11 15:00:00 +10:00
|
|
|
private final Block hostBlock;
|
2022-12-08 03:00:00 +11:00
|
|
|
@@ -42,7 +44,7 @@
|
2014-11-26 08:32:16 +11:00
|
|
|
|
2022-12-08 03:00:00 +11:00
|
|
|
if (entitysilverfish != null) {
|
|
|
|
entitysilverfish.moveTo((double) blockposition.getX() + 0.5D, (double) blockposition.getY(), (double) blockposition.getZ() + 0.5D, 0.0F, 0.0F);
|
|
|
|
- worldserver.addFreshEntity(entitysilverfish);
|
|
|
|
+ worldserver.addFreshEntity(entitysilverfish, SpawnReason.SILVERFISH_BLOCK); // CraftBukkit - add SpawnReason
|
|
|
|
entitysilverfish.spawnAnim();
|
|
|
|
}
|
2014-11-26 08:32:16 +11:00
|
|
|
|