Skip to content

Commit

Permalink
chores: remove useless Chunk::onChunkSet() method
Browse files Browse the repository at this point in the history
  • Loading branch information
smartcmd committed Jun 22, 2024
1 parent 7b951c3 commit 32228c3
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,9 @@ public static LinkedList<String> spiltCommandArgs(String cmdLine) {
}

public static Map<String, String> parseOptions(String preset) {
if (preset.isBlank()) {
return Collections.emptyMap();
}
var splits = fastSplit(preset, ";");
var options = new HashMap<String, String>();
for(var split : splits) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,6 @@ default Set<EntityPlayer> getPlayerChunkLoaders() {
@ApiStatus.Internal
void setChunkSetCallback(Runnable callback);

/**
* Called when the chunk is loaded into the world
*/
@ApiStatus.Internal
void onChunkSet();

void addChunkLoader(ChunkLoader chunkLoader);

void removeChunkLoader(ChunkLoader chunkLoader);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -533,6 +533,8 @@ public void beforeSetChunk(Dimension dimension) {

@Override
public void afterSetChunk(Dimension dimension) {
chunkSetCallback.run();
loaded = true;
unsafeChunk.afterSetChunk(dimension);
}

Expand Down Expand Up @@ -584,12 +586,6 @@ public void setChunkSetCallback(Runnable callback) {
this.chunkSetCallback = callback;
}

@Override
public void onChunkSet() {
chunkSetCallback.run();
loaded = true;
}

@Override
public void addChunkLoader(ChunkLoader chunkLoader) {
chunkLoaders.add(chunkLoader);
Expand Down

0 comments on commit 32228c3

Please sign in to comment.