This commit is contained in:
Charlie Wang 2013-07-12 13:06:01 -04:00
parent d947c62c6a
commit f7a5aabd5c

View File

@ -49,15 +49,15 @@ public final class DiscoSheep extends JavaPlugin {
public void onDisable() { public void onDisable() {
this.stopAllParties(); this.stopAllParties();
} }
int toTicks(double seconds) { int toTicks(double seconds) {
return (int) Math.round(seconds * 20.0); return (int) Math.round(seconds * 20.0);
} }
double toSeconds(int ticks) { double toSeconds(int ticks) {
return (double) Math.round(ticks / 20.0); return (double) Math.round(ticks / 20.0);
} }
int toSeconds_i(int ticks) { int toSeconds_i(int ticks) {
return (int) Math.round(ticks / 20.0); return (int) Math.round(ticks / 20.0);
} }