Temporarily use getDouble() internally for calls to getFloat() in Paper configs
getFloat() seems to have an issue with reading modified values and always returns the default value instead. This needs further investigating, but for now making it use getDouble() internally appears to resolve the issue.
This commit is contained in:
@@ -26,13 +26,13 @@ index 0000000000000000000000000000000000000000..00000000000000000000000000000000
|
||||
+++ b/src/main/java/org/github/paperspigot/PaperSpigotWorldConfig.java
|
||||
@@ -0,0 +0,0 @@ public class PaperSpigotWorldConfig
|
||||
{
|
||||
containerUpdateTickRate = getInt("container-update-tick-rate", 1);
|
||||
containerUpdateTickRate = getInt( "container-update-tick-rate", 1 );
|
||||
}
|
||||
+
|
||||
+ public float tntExplosionVolume;
|
||||
+ private void tntExplosionVolume()
|
||||
+ {
|
||||
+ tntExplosionVolume = getFloat("tnt-explosion-volume", 4.0F);
|
||||
+ tntExplosionVolume = getFloat( "tnt-explosion-volume", 4.0F );
|
||||
+ }
|
||||
}
|
||||
--
|
||||
Reference in New Issue
Block a user