diff --git a/arclight-neoforge/src/main/java/io/izzel/arclight/neoforge/mixin/core/world/entity/EntityMixin_NeoForge.java b/arclight-neoforge/src/main/java/io/izzel/arclight/neoforge/mixin/core/world/entity/EntityMixin_NeoForge.java index ec2985af8..6b7f92b3c 100644 --- a/arclight-neoforge/src/main/java/io/izzel/arclight/neoforge/mixin/core/world/entity/EntityMixin_NeoForge.java +++ b/arclight-neoforge/src/main/java/io/izzel/arclight/neoforge/mixin/core/world/entity/EntityMixin_NeoForge.java @@ -99,7 +99,7 @@ public Entity changeDimension(ServerLevel arg) { @Overwrite(remap = false) @Nullable public Entity changeDimension(ServerLevel server, ITeleporter teleporter) { - if (CommonHooks.onTravelToDimension((Entity) (Object) this, server.dimension())) + if (!CommonHooks.onTravelToDimension((Entity) (Object) this, server.dimension())) return null; if (this.level() instanceof ServerLevel && !this.isRemoved()) { this.level().getProfiler().push("changeDimension"); diff --git a/arclight-neoforge/src/main/java/io/izzel/arclight/neoforge/mixin/core/world/entity/player/ServerPlayerMixin_NeoForge.java b/arclight-neoforge/src/main/java/io/izzel/arclight/neoforge/mixin/core/world/entity/player/ServerPlayerMixin_NeoForge.java index df0360461..541ea3688 100644 --- a/arclight-neoforge/src/main/java/io/izzel/arclight/neoforge/mixin/core/world/entity/player/ServerPlayerMixin_NeoForge.java +++ b/arclight-neoforge/src/main/java/io/izzel/arclight/neoforge/mixin/core/world/entity/player/ServerPlayerMixin_NeoForge.java @@ -106,7 +106,7 @@ public Entity changeDimension(ServerLevel server, ITeleporter teleporter) { if (this.isSleeping()) { return (ServerPlayer) (Object) this; } - if (CommonHooks.onTravelToDimension((ServerPlayer) (Object) this, server.dimension())) return null; + if (!CommonHooks.onTravelToDimension((ServerPlayer) (Object) this, server.dimension())) return null; // this.invulnerableDimensionChange = true; ServerLevel serverworld = this.serverLevel();