Skip to content

Commit

Permalink
Fix incorrect format specifier (4.3.9.1)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarhatabaot committed Oct 29, 2024
1 parent 49ec29e commit e4bd017
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ plugins {
alias(libs.plugins.shadow)
alias(libs.plugins.plugin.yml)
}
version = "4.3.9"
version = "4.3.9.1"
description = "Limit entities in chunks."

dependencies {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,9 @@ public EntityListener(final ChunkSpawnerLimiter plugin) {

@EventHandler
public void onCreatureSpawnEvent(@NotNull CreatureSpawnEvent event) {
if (event.isCancelled() || !config.isWatchCreatureSpawns())
if (event.isCancelled() || !config.isWatchCreatureSpawns()) {
return;
}

final String reason = event.getSpawnReason().toString();

Expand Down Expand Up @@ -62,7 +63,7 @@ public void onEntitySpawnEvent(@NotNull EntitySpawnEvent event) {

Chunk chunk = event.getEntity().getLocation().getChunk();

ChatUtil.debug("Entity Spawn Event: %d, %dx, %dz ", event.getEntity().getType().name(),chunk.getX(), chunk.getZ());
ChatUtil.debug("Entity Spawn Event: %s, %dx, %dz ", event.getEntity().getType().name(), chunk.getX(), chunk.getZ());
WorldListener.checkChunk(chunk);
checkSurroundings(chunk);
}
Expand Down

0 comments on commit e4bd017

Please sign in to comment.