From 70712de499d9522f6ab6c4fc21ec97b63f6423a5 Mon Sep 17 00:00:00 2001 From: BuildTools Date: Wed, 12 Apr 2017 16:06:30 -0400 Subject: [PATCH] Add old Eternal Fabric Behavior --- .../java/com/zixiken/dimdoors/shared/blocks/BlockFabric.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/zixiken/dimdoors/shared/blocks/BlockFabric.java b/src/main/java/com/zixiken/dimdoors/shared/blocks/BlockFabric.java index 43341de1..ef6b33d3 100644 --- a/src/main/java/com/zixiken/dimdoors/shared/blocks/BlockFabric.java +++ b/src/main/java/com/zixiken/dimdoors/shared/blocks/BlockFabric.java @@ -190,7 +190,8 @@ public class BlockFabric extends Block { } @Override - public void onEntityCollidedWithBlock(World world, BlockPos pos, IBlockState state, Entity entity) { //@todo move this to update or updateTick, because of the teleport and because you now have to fall through the block in order to teleport (wouldn't that be nice though?) + public void onEntityWalk(World world, BlockPos pos, Entity entity) { + IBlockState state = world.getBlockState(pos); if (state.getValue(TYPE) == EnumType.ETERNAL && world.provider instanceof WorldProviderLimbo && entity instanceof EntityPlayer) { Location origLocation = new Location(world, pos); Location transFormedLocation = DDRandomUtils.transformLocationRandomly(DDConfig.getOwCoordinateOffsetBase(), DDConfig.getOwCoordinateOffsetPower(), DDConfig.getMaxDungeonDepth(), origLocation);