mirror of
https://github.com/MinecraftForge/MinecraftForge.git
synced 2026-11-19 03:49:14 +00:00
Fire EntityTravelToDimensionEvent in all expected cases (#8614)
Fixes #8520
This commit is contained in:
1 parent
dfc2aa9c6a
commit
0f8c2fa454
1 file changed
+2
-1
@@ -241,7 +241,7 @@
|
||||
}
|
||||
|
||||
public boolean m_7306_(Entity p_20356_) {
|
||||
@@ -2237,14 +_,19 @@
|
||||
@@ -2237,14 +_,20 @@
|
||||
|
||||
@Nullable
|
||||
public Entity m_5489_(ServerLevel p_20118_) {
|
||||
@@ -249,6 +249,7 @@
|
||||
+ }
|
||||
+ @Nullable
|
||||
+ public Entity changeDimension(ServerLevel p_20118_, net.minecraftforge.common.util.ITeleporter teleporter) {
|
||||
+ if (!net.minecraftforge.common.ForgeHooks.onTravelToDimension(this, p_20118_.m_46472_())) return null;
|
||||
if (this.f_19853_ instanceof ServerLevel && !this.m_146910_()) {
|
||||
this.f_19853_.m_46473_().m_6180_("changeDimension");
|
||||
this.m_19877_();
|
||||
|
||||
Reference in new issue
Block a user