@@ -1,8 +1,8 @@
|
||||
--- a/net/minecraft/world/entity/monster/EntitySilverfish.java
|
||||
+++ b/net/minecraft/world/entity/monster/EntitySilverfish.java
|
||||
@@ -33,6 +33,10 @@
|
||||
import net.minecraft.world.level.block.BlockMonsterEggs;
|
||||
@@ -34,6 +34,10 @@
|
||||
import net.minecraft.world.level.block.state.IBlockData;
|
||||
import org.joml.Vector3f;
|
||||
|
||||
+// CraftBukkit start
|
||||
+import org.bukkit.craftbukkit.event.CraftEventFactory;
|
||||
@@ -11,7 +11,7 @@
|
||||
public class EntitySilverfish extends EntityMonster {
|
||||
|
||||
@Nullable
|
||||
@@ -175,6 +179,11 @@
|
||||
@@ -176,6 +180,11 @@
|
||||
Block block = iblockdata.getBlock();
|
||||
|
||||
if (block instanceof BlockMonsterEggs) {
|
||||
@@ -23,7 +23,7 @@
|
||||
if (world.getGameRules().getBoolean(GameRules.RULE_MOBGRIEFING)) {
|
||||
world.destroyBlock(blockposition1, true, this.silverfish);
|
||||
} else {
|
||||
@@ -244,6 +253,11 @@
|
||||
@@ -245,6 +254,11 @@
|
||||
IBlockData iblockdata = world.getBlockState(blockposition);
|
||||
|
||||
if (BlockMonsterEggs.isCompatibleHostBlock(iblockdata)) {
|
||||
|
||||
Reference in New Issue
Block a user