Compare commits

..

No commits in common. "8a422e725fe435d2d9ebd85833abe6c3da639a67" and "afc8ae209e7a2d8b75187c9c60e262349ee304d7" have entirely different histories.

View file

@ -22,7 +22,6 @@ import net.minecraft.util.text.StringTextComponent;
import net.minecraft.world.IBlockReader; import net.minecraft.world.IBlockReader;
import net.minecraft.world.World; import net.minecraft.world.World;
import net.minecraft.world.server.ServerWorld; import net.minecraft.world.server.ServerWorld;
//import us.minecraftchest2.hdm_mod.world.dimension.ModDimensions;
import us.minecraftchest2.hdm_mod.world.dimension.ModDimensions; import us.minecraftchest2.hdm_mod.world.dimension.ModDimensions;
import us.minecraftchest2.hdm_mod.world.dimension.SimpleTeleporter; import us.minecraftchest2.hdm_mod.world.dimension.SimpleTeleporter;
@ -102,7 +101,7 @@ public class Window extends HorizontalBlock {
@SuppressWarnings("deprecation") @SuppressWarnings("deprecation")
@Override @Override
public ActionResultType onBlockActivated(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit) { public ActionResultType onBlockActivated(BlockState state, World worldIn, BlockPos pos, PlayerEntity player, Hand handIn, BlockRayTraceResult hit) {
if (worldIn.isRemote()) return super.onBlockActivated(state, worldIn, pos, player, handIn, hit); if (!worldIn.isRemote()) return super.onBlockActivated(state, worldIn, pos, player, handIn, hit);
if (player.isCrouching()) return super.onBlockActivated(state, worldIn, pos, player, handIn, hit); if (player.isCrouching()) return super.onBlockActivated(state, worldIn, pos, player, handIn, hit);