Skip to content

Commit

Permalink
bump: minecraft 1.20.6
Browse files Browse the repository at this point in the history
  • Loading branch information
sakurawald committed Jun 17, 2024
1 parent 4d5df70 commit 3d45b99
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

import net.minecraft.block.entity.EndGatewayBlockEntity;
import net.minecraft.registry.RegistryKey;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.world.World;
import org.spongepowered.asm.mixin.Mixin;
import org.spongepowered.asm.mixin.injection.At;
Expand All @@ -11,8 +12,8 @@
public abstract class EndGatewayBlockEntityMixin {

// note: for a resource end, we force make World.END == World.END a true condition, so that the end gateway in resource end can work.
@Redirect(method = "tryTeleportingEntity", at = @At(value = "INVOKE", target = "Lnet/minecraft/world/World;getRegistryKey()Lnet/minecraft/registry/RegistryKey;"))
private static RegistryKey<World> $tryTeleportingEntity(World instance) {
@Redirect(method = "getOrCreateExitPortalPos", at = @At(value = "INVOKE", target = "Lnet/minecraft/server/world/ServerWorld;getRegistryKey()Lnet/minecraft/registry/RegistryKey;"))
private RegistryKey<World> $tryTeleportingEntity(ServerWorld instance) {
return World.END;
}
}

0 comments on commit 3d45b99

Please sign in to comment.