Skip to content

Commit

Permalink
- added more debug
Browse files Browse the repository at this point in the history
  • Loading branch information
Grzybol committed Apr 9, 2024
1 parent 23ae021 commit f8d61b3
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@

<groupId>betterbox.mine.game</groupId>
<artifactId>BetterElo</artifactId>
<version>4.1.1-SNAPSHOT</version>
<version>4.1.2-SNAPSHOT</version>
<packaging>jar</packaging>

<name>BetterElo</name>
Expand Down
6 changes: 2 additions & 4 deletions src/main/java/betterbox/mine/game/betterelo/CustomMobs.java
Original file line number Diff line number Diff line change
Expand Up @@ -237,16 +237,14 @@ public void spawnCustomMobFromSpawner() {
int maxMobs = fileManager.getSpawnerMaxMobs(spawnerName);
int remainingSlots = Math.max(0, maxMobs - spawnerData.spawnedMobCount);
String mobName = fileManager.getSpawnerMobName(spawnerName);
pluginLogger.log(PluginLogger.LogLevel.SPAWNERS, "CustomMobs.spawnZombieFromSpawner "+spawnerName+", maxMobs: "+maxMobs+", remaining slots: "+remainingSlots);
//pluginLogger.log(PluginLogger.LogLevel.SPAWNERS, "CustomMobs.spawnZombieFromSpawner "+spawnerName+", maxMobs: "+maxMobs+", remaining slots: "+remainingSlots);
if(remainingSlots==0){
//pluginLogger.log(PluginLogger.LogLevel.SPAWNERS, "0 remaining slots for "+spawnerName);
continue;
}
int mobsToSpawn = Math.min(mobCount, remainingSlots);
pluginLogger.log(PluginLogger.LogLevel.SPAWNERS, "CustomMobs.spawnZombieFromSpawner "+spawnerName+", maxMobs: "+maxMobs+", remaining slots: "+remainingSlots+", mobsToSpawn: "+mobsToSpawn);
for (int i = 0; i < mobsToSpawn; i++) {
//spawnModifiedZombie(location,spawnerName);
//spawnModifiedZombieUsingCustomMob(location,spawnerName);
// Increment the spawned mob count for this spawner
spawnCustomMob(location,spawnerName,mobName);
spawnerData.spawnedMobCount++;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ public HashMap<Double, ItemStack> loadCustomDrops(String dropTableName) {
HashMap<Double, ItemStack> drops = new HashMap<>();
File dropTableFile = new File(plugin.getDataFolder() + File.separator + "customDropTables", dropTableName + ".yml");
if (!dropTableFile.exists()) {
pluginLogger.log(PluginLogger.LogLevel.ERROR, "Tabela dropów " + dropTableName + " nie istnieje.");
pluginLogger.log(PluginLogger.LogLevel.ERROR, "loadCustomDrops dropTable " + dropTableName + " does not exist!");
return drops;
}

Expand Down

0 comments on commit f8d61b3

Please sign in to comment.