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 db3a105 commit b03f31b
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,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.minecraftforge.api.distmarker.Dist;
import net.minecraftforge.api.distmarker.OnlyIn;
import net.minecraftforge.common.util.LazyOptional;

public class AetherPortalBlock extends Block {
Expand Down Expand Up @@ -102,6 +104,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 b03f31b

Please sign in to comment.