Skip to content

Commit

Permalink
Fix accidental sql inject with exists overlay
Browse files Browse the repository at this point in the history
  • Loading branch information
TheEpicBlock committed Aug 18, 2024
1 parent 740732d commit d1fd1be
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public enum OverlayType {
BLOCK_AMOUNT("#Blocks", BlockAmountOverlay::new),
COMPRESSED_SIZE("CompressedSize", CompressedSizeOverlay::new),
MCA_WASTED("McaWastedSize", McaWastedOverlay::new),
EXISTS("Exists", ExistsOverlay::new),
CHUNK_EXISTS("ChunkExists", ChunkExistsOverlay::new),
CUSTOM("Custom", CustomOverlay::new);

private final String name;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,10 @@

import java.util.Locale;

public class ExistsOverlay extends Overlay {
public ExistsOverlay() {
super(OverlayType.EXISTS);
public class ChunkExistsOverlay extends Overlay {
public ChunkExistsOverlay() {
super(OverlayType.CHUNK_EXISTS);
setMultiValues(new String[0]);
}

@Override
Expand All @@ -24,7 +25,7 @@ public int parseValue(ChunkData chunkData) {

@Override
public String name() {
return "Exists";
return "ChunkExists";
}

@Override
Expand Down

0 comments on commit d1fd1be

Please sign in to comment.