Skip to content

Commit

Permalink
Why not use a double
Browse files Browse the repository at this point in the history
  • Loading branch information
vemacs committed Jul 3, 2015
1 parent e26c0c5 commit 26cc0a6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<modelVersion>4.0.0</modelVersion>
<groupId>me.vemacs</groupId>
<artifactId>MagicTPS</artifactId>
<version>6.9</version>
<version>6.9-R2</version>
<name>MagicTPS</name>
<repositories>
<repository>
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/me/vemacs/magictps/MagicTPS.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
import org.bukkit.plugin.java.JavaPlugin;

public class MagicTPS extends JavaPlugin implements Listener {
private int tpsMultiplier;
private double tpsMultiplier;

@Override
public void onEnable() {
saveDefaultConfig();
getServer().getPluginManager().registerEvents(this, this);
tpsMultiplier = getConfig().getInt("tps-multiplier");
tpsMultiplier = getConfig().getDouble("tps-multiplier");
}

@EventHandler
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/config.yml
Original file line number Diff line number Diff line change
@@ -1 +1 @@
tps-multiplier: 21
tps-multiplier: 21.0

0 comments on commit 26cc0a6

Please sign in to comment.