mirror of
https://github.com/mcMMO-Dev/mcMMO.git
synced 2025-06-28 03:34:43 +02:00
Fix issues pointed out by the FindBugs plugin
This commit is contained in:
@ -87,8 +87,9 @@ public class CleanBackupsTask extends BukkitRunnable {
|
||||
mcMMO.p.getLogger().info("Cleaned backup files. Deleted " + amountDeleted + " of " + amountTotal + " files.");
|
||||
|
||||
for (File file : toDelete) {
|
||||
mcMMO.p.debug("Deleted: " + file.getName());
|
||||
file.delete();
|
||||
if (file.delete()) {
|
||||
mcMMO.p.debug("Deleted: " + file.getName());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -18,8 +18,8 @@ import com.gmail.nossr50.util.Permissions;
|
||||
import com.gmail.nossr50.util.player.UserManager;
|
||||
|
||||
public class AlchemyBrewTask extends BukkitRunnable {
|
||||
private final double DEFAULT_BREW_SPEED = 1.0;
|
||||
private final int DEFAULT_BREW_TICKS = 400;
|
||||
private static double DEFAULT_BREW_SPEED = 1.0;
|
||||
private static int DEFAULT_BREW_TICKS = 400;
|
||||
|
||||
private Block brewingStand;
|
||||
private double brewSpeed;
|
||||
|
Reference in New Issue
Block a user