Added support for float.
git-svn-id: svn+ssh://src.earth.threerings.net/narya/trunk@2209 542714f4-19e9-0310-aa3c-eee0fc999fb1
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
//
|
||||
// $Id: ConfObjRegistry.java,v 1.4 2003/01/22 01:40:32 mdb Exp $
|
||||
// $Id: ConfObjRegistry.java,v 1.5 2003/01/22 01:42:51 mdb Exp $
|
||||
|
||||
package com.threerings.admin.server;
|
||||
|
||||
@@ -173,6 +173,10 @@ public class ConfObjRegistry
|
||||
long defval = field.getLong(confObj);
|
||||
field.setLong(confObj, config.getValue(key, defval));
|
||||
|
||||
} else if (type.equals(Float.TYPE)) {
|
||||
float defval = field.getFloat(confObj);
|
||||
field.setFloat(confObj, config.getValue(key, defval));
|
||||
|
||||
} else if (type.equals(String.class)) {
|
||||
String defval = (String)field.get(confObj);
|
||||
field.set(confObj, config.getValue(key, defval));
|
||||
|
||||
Reference in New Issue
Block a user