Skip to content

Commit

Permalink
Fixed parameter being not specific enough
Browse files Browse the repository at this point in the history
  • Loading branch information
HenryLoenwind committed Sep 16, 2024
1 parent 61d9d6b commit 29e17df
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
import net.minecraft.core.GlobalPos;
import net.minecraft.resources.ResourceKey;
import net.minecraft.server.MinecraftServer;
import net.minecraft.server.level.ServerLevel;
import net.minecraft.util.RandomSource;
import net.minecraft.world.entity.Entity;
import net.minecraft.world.level.Level;
Expand Down Expand Up @@ -122,7 +123,7 @@ public ResourceKey<Level> getDimension() {
return level.get();
}

public Level getLevel(Level anotherLevel) {
public Level getLevel(ServerLevel anotherLevel) {
return getLevel(anotherLevel.getServer());
}

Expand Down

0 comments on commit 29e17df

Please sign in to comment.