mirror of
https://github.com/PaperMC/Paper.git
synced 2025-01-10 03:52:45 +01:00
25f3b50f6b
By: md_5 <git@md-5.net>
20 lines
936 B
Diff
20 lines
936 B
Diff
--- a/net/minecraft/world/level/block/BlockMonsterEggs.java
|
|
+++ b/net/minecraft/world/level/block/BlockMonsterEggs.java
|
|
@@ -16,6 +16,8 @@
|
|
import net.minecraft.world.level.block.state.IBlockData;
|
|
import net.minecraft.world.level.block.state.properties.IBlockState;
|
|
|
|
+import org.bukkit.event.entity.CreatureSpawnEvent.SpawnReason; // CraftBukkit
|
|
+
|
|
public class BlockMonsterEggs extends Block {
|
|
|
|
private final Block hostBlock;
|
|
@@ -41,7 +43,7 @@
|
|
EntitySilverfish entitysilverfish = (EntitySilverfish) EntityTypes.SILVERFISH.create(worldserver);
|
|
|
|
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();
|
|
}
|
|
|