From 2c27cf888c50e57cd61807dddbb48dd8895a8357 Mon Sep 17 00:00:00 2001 From: Cat Core Date: Sat, 7 Mar 2020 12:37:52 +0100 Subject: [PATCH] add a platform under it --- .../raa/api/dimension/PlayerPlacementHandlers.java | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/src/main/java/io/github/vampirestudios/raa/api/dimension/PlayerPlacementHandlers.java b/src/main/java/io/github/vampirestudios/raa/api/dimension/PlayerPlacementHandlers.java index d9892dbc..9f996f14 100644 --- a/src/main/java/io/github/vampirestudios/raa/api/dimension/PlayerPlacementHandlers.java +++ b/src/main/java/io/github/vampirestudios/raa/api/dimension/PlayerPlacementHandlers.java @@ -49,7 +49,18 @@ public enum PlayerPlacementHandlers { destination.setBlockState(blockPos.south(), stone); destination.setBlockState(blockPos.south().west(), stone); - return new BlockPattern.TeleportTarget(new Vec3d(blockPos.up()), Vec3d.ZERO, 0); + blockPos = blockPos.down(); + destination.setBlockState(blockPos, stone); + destination.setBlockState(blockPos.west(), stone); + destination.setBlockState(blockPos.west().north(), stone); + destination.setBlockState(blockPos.north(), stone); + destination.setBlockState(blockPos.north().east(), stone); + destination.setBlockState(blockPos.east(), stone); + destination.setBlockState(blockPos.east().south(), stone); + destination.setBlockState(blockPos.south(), stone); + destination.setBlockState(blockPos.south().west(), stone); + + return new BlockPattern.TeleportTarget(new Vec3d(blockPos.up(2)), Vec3d.ZERO, 0); } else { destination.setBlockState(blockPos.down(1), Registry.BLOCK.get(Utils.appendToPath(Objects.requireNonNull(Registry.DIMENSION_TYPE.getId(destination.getDimension().getType())), "_portal")).getDefaultState()); return new BlockPattern.TeleportTarget(new Vec3d(blockPos), Vec3d.ZERO, 0);