mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 11:59:25 +00:00
12 lines
649 B
Diff
12 lines
649 B
Diff
--- a/net/minecraft/util/SpawnUtil.java
|
|
+++ b/net/minecraft/util/SpawnUtil.java
|
|
@@ -47,7 +_,7 @@
|
|
)) {
|
|
T t = (T)p_216404_.create(p_216406_, null, blockpos$mutableblockpos, p_369127_, false, false);
|
|
if (t != null) {
|
|
- if (t.checkSpawnRules(p_216406_, p_369127_) && t.checkSpawnObstruction(p_216406_)) {
|
|
+ if (net.minecraftforge.event.ForgeEventFactory.checkSpawnPosition(t, p_216406_, p_369127_)) {
|
|
p_216406_.addFreshEntityWithPassengers(t);
|
|
t.playAmbientSound();
|
|
return Optional.of(t);
|