Skip to content

Commit

Permalink
fix: server crash
Browse files Browse the repository at this point in the history
  • Loading branch information
bconlon1 committed Oct 5, 2024
1 parent d79e8d2 commit 0aa9c2e
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,8 @@
import net.minecraft.world.level.block.state.properties.EnumProperty;
import net.minecraft.world.phys.shapes.CollisionContext;
import net.minecraft.world.phys.shapes.VoxelShape;
import net.neoforged.api.distmarker.Dist;
import net.neoforged.api.distmarker.OnlyIn;

public class AetherPortalBlock extends Block {
public static final EnumProperty<Direction.Axis> AXIS = BlockStateProperties.HORIZONTAL_AXIS;
Expand Down Expand Up @@ -101,6 +103,7 @@ private void handleTeleportation(Entity entity) {
/**
* [CODE COPY] - {@link net.minecraft.world.level.block.NetherPortalBlock#animateTick(BlockState, Level, BlockPos, RandomSource)}.
*/
@OnlyIn(Dist.CLIENT)
@Override
public void animateTick(BlockState state, Level level, BlockPos pos, RandomSource random) {
if (random.nextInt(100) == 0) {
Expand Down

0 comments on commit 0aa9c2e

Please sign in to comment.