Skip to content

Commit

Permalink
Remove unneeded code
Browse files Browse the repository at this point in the history
  • Loading branch information
pjon1 authored and sisby-folk committed Oct 11, 2024
1 parent e0a2e86 commit 7fa08f9
Showing 1 changed file with 4 additions and 14 deletions.
18 changes: 4 additions & 14 deletions src/main/java/folk/sisby/surveyor/PlayerSummary.java
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ static PlayerSummary of(UUID uuid, MinecraftServer server) {
}

SurveyorExploration exploration();
void copyExploration(PlayerSummary oldSummary);

String username();

Expand Down Expand Up @@ -101,10 +100,6 @@ public int viewDistance() {
return 0;
}

@Override
public void copyExploration(PlayerSummary oldSummary) {
}

public record OfflinePlayerExploration(Set<UUID> sharedPlayers, Map<RegistryKey<World>, Map<ChunkPos, BitSet>> terrain, Map<RegistryKey<World>, Map<RegistryKey<Structure>, LongSet>> structures, boolean personal) implements SurveyorExploration {
public static OfflinePlayerExploration ofMerged(Set<SurveyorExploration> explorations) {
Set<UUID> sharedPlayers = new HashSet<>();
Expand Down Expand Up @@ -139,10 +134,6 @@ public SurveyorExploration exploration() {
return null;
}

@Override
public void copyExploration(PlayerSummary oldSummary) {
}

@Override
public String username() {
return player.getGameProfile().getName();
Expand Down Expand Up @@ -188,11 +179,6 @@ public SurveyorExploration exploration() {
return exploration;
}

@Override
public void copyExploration(PlayerSummary oldSummary) {
exploration.copyFrom(((ServerPlayerEntitySummary) oldSummary).exploration);
}

@Override
public int viewDistance() {
return viewDistance;
Expand All @@ -202,6 +188,10 @@ public void setViewDistance(int viewDistance) {
this.viewDistance = viewDistance;
}

public void copyExploration(ServerPlayerEntitySummary oldSummary) {
exploration.copyFrom(oldSummary.exploration);
}

public void read(NbtCompound nbt) {
exploration.read(nbt.getCompound(KEY_DATA));
}
Expand Down

0 comments on commit 7fa08f9

Please sign in to comment.