aboutsummaryrefslogtreecommitdiffhomepage
path: root/patch-remap/og/net/minecraft/world/level/block/BlockMonsterEggs.patch
diff options
context:
space:
mode:
authorMiniDigger | Martin <[email protected]>2024-01-14 11:04:49 +0100
committerMiniDigger | Martin <[email protected]>2024-01-14 11:04:49 +0100
commitbee74680e607c2e29b038329f62181238911cd83 (patch)
tree708fd1a4a0227d9071243adf2a42d5e9e96cde4a /patch-remap/og/net/minecraft/world/level/block/BlockMonsterEggs.patch
parent0a44692ef6ff6e255d48eb3ba1bb114166eafda9 (diff)
downloadPaper-softspoon.tar.gz
Paper-softspoon.zip
add remapped patches as a testsoftspoon
Diffstat (limited to 'patch-remap/og/net/minecraft/world/level/block/BlockMonsterEggs.patch')
-rw-r--r--patch-remap/og/net/minecraft/world/level/block/BlockMonsterEggs.patch20
1 files changed, 20 insertions, 0 deletions
diff --git a/patch-remap/og/net/minecraft/world/level/block/BlockMonsterEggs.patch b/patch-remap/og/net/minecraft/world/level/block/BlockMonsterEggs.patch
new file mode 100644
index 0000000000..d77107faf6
--- /dev/null
+++ b/patch-remap/og/net/minecraft/world/level/block/BlockMonsterEggs.patch
@@ -0,0 +1,20 @@
+--- a/net/minecraft/world/level/block/BlockMonsterEggs.java
++++ b/net/minecraft/world/level/block/BlockMonsterEggs.java
+@@ -19,6 +19,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 {
+
+ public static final MapCodec<BlockMonsterEggs> CODEC = RecordCodecBuilder.mapCodec((instance) -> {
+@@ -53,7 +55,7 @@
+
+ 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();
+ }
+