mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-12 08:17:35 +00:00
Fix Entity#onAddedToWorld not being called for non-player entities server-side (#8134)
This commit is contained in:
1 parent
4ca2a8058f
commit
febfd5ab62
1 file changed
+14
@@ -156,6 +156,20 @@
|
||||
}
|
||||
|
||||
private boolean m_8872_(Entity p_8873_) {
|
||||
@@ -754,7 +_,12 @@
|
||||
f_8566_.warn("Tried to add entity {} but it was marked as removed already", (Object)EntityType.m_20613_(p_8873_.m_6095_()));
|
||||
return false;
|
||||
} else {
|
||||
- return this.f_143244_.m_157533_(p_8873_);
|
||||
+ if (this.f_143244_.m_157533_(p_8873_)) {
|
||||
+ p_8873_.onAddedToWorld();
|
||||
+ return true;
|
||||
+ } else {
|
||||
+ return false;
|
||||
+ }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -790,10 +_,20 @@
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user