Skip to content

Commit

Permalink
Fixed mixin
Browse files Browse the repository at this point in the history
  • Loading branch information
Faboslav committed Dec 20, 2022
1 parent dd13ebb commit c4d2d37
Showing 1 changed file with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
import net.minecraft.entity.EntityType;
import net.minecraft.entity.LightningEntity;
import net.minecraft.entity.mob.ZombieHorseEntity;
import net.minecraft.registry.RegistryKey;
import net.minecraft.registry.entry.RegistryEntry;
import net.minecraft.server.world.ServerWorld;
import net.minecraft.util.math.BlockPos;
import net.minecraft.util.math.ChunkPos;
import net.minecraft.util.math.Vec3d;
import net.minecraft.util.profiler.Profiler;
import net.minecraft.util.registry.RegistryEntry;
import net.minecraft.util.registry.RegistryKey;
import net.minecraft.world.*;
import net.minecraft.world.chunk.WorldChunk;
import net.minecraft.world.dimension.DimensionType;
Expand All @@ -27,9 +27,6 @@
@Mixin(ServerWorld.class)
public abstract class ServerWorldMixin extends World implements StructureWorldAccess
{
@Shadow
protected abstract BlockPos getLightningPos(BlockPos pos);

protected ServerWorldMixin(
MutableWorldProperties properties,
RegistryKey<World> registryRef,
Expand All @@ -43,6 +40,9 @@ protected ServerWorldMixin(
super(properties, registryRef, dimension, profiler, isClient, debugWorld, seed, maxChainedNeighborUpdates);
}

@Shadow
protected abstract BlockPos getLightningPos(BlockPos pos);

@Inject(
method = "tickChunk",
at = @At("TAIL"),
Expand Down

0 comments on commit c4d2d37

Please sign in to comment.