From 2a913cbeee4249e8ca5f991f3ed24f4129b941be Mon Sep 17 00:00:00 2001 From: Ellpeck Date: Tue, 22 Sep 2020 18:09:46 +0200 Subject: [PATCH] fixed end rails going to the wrong destination --- .../java/de/ellpeck/naturesaura/blocks/BlockDimensionRail.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/de/ellpeck/naturesaura/blocks/BlockDimensionRail.java b/src/main/java/de/ellpeck/naturesaura/blocks/BlockDimensionRail.java index 9954a9cd..306c9544 100644 --- a/src/main/java/de/ellpeck/naturesaura/blocks/BlockDimensionRail.java +++ b/src/main/java/de/ellpeck/naturesaura/blocks/BlockDimensionRail.java @@ -117,8 +117,7 @@ public class BlockDimensionRail extends AbstractRailBlock implements IModItem, I return new BlockPos(pos.getX() / 8, pos.getY() / 2, pos.getZ() / 8); } else if (this == ModBlocks.DIMENSION_RAIL_END) { // travel to the end from the overworld - ServerWorld end = server.getWorld(this.goalDim); - return end.func_241135_u_().up(8); + return ServerWorld.field_241108_a_.up(8); } else { if (world.func_234923_W_() == World.field_234919_h_) { // travel to the overworld from the nether