fixed bug in persistence module

This commit is contained in:
walterhiggins 2014-06-06 18:17:30 +01:00
parent 20519d88db
commit ede823d62c
3 changed files with 4 additions and 15 deletions

View file

@ -1,3 +1,6 @@
# 2014 05 31
Fix bug in persistence module. Private load function wasn't returning result of scload.
# 2014 05 29 # 2014 05 29
Fix tab completion for /jsp command so that it conforms with tab completion norms in minecraft. Fix tab completion for /jsp command so that it conforms with tab completion norms in minecraft.
/jsp ice<TAB> completes to /jsp icecream /jsp ice<TAB> completes to /jsp icecream

View file

@ -1,14 +0,0 @@
<?xml version="1.0" encoding="UTF-8"?>
<project basedir=".." name="scriptcraft-IDE">
<import file="../build.xml"/>
<!-- TODO: edit the following target according to your needs -->
<!-- (more info: http://www.netbeans.org/kb/articles/freeform-config.html#debugj2se) -->
<target depends="server-setup, package, update-live-cb" description="Starts Bukkit with ScriptCraft" name="debug-nb">
<echo>Starting Bukkit with ScriptCraft</echo>
<nbjpdastart addressproperty="jpda.address" name="scriptcraft" transport="dt_socket"/>
<java dir="${minecraft.dir}" fork="true" jar="${minecraft.dir}/craftbukkit.jar" maxmemory="1024m">
<jvmarg value="-Xdebug"/>
<jvmarg value="-Xrunjdwp:transport=dt_socket,address=${jpda.address}"/>
</java>
</target>
</project>

View file

@ -4,7 +4,7 @@ var _dataDir = null,
module.exports = function( rootDir, $ ) { module.exports = function( rootDir, $ ) {
var _load = function( name ) { var _load = function( name ) {
$.scload( _dataDir.canonicalPath + '/' + name + '-store.json' ); return $.scload( _dataDir.canonicalPath + '/' + name + '-store.json' );
}; };
var _save = function( name, data ) { var _save = function( name, data ) {
$.scsave( data, _dataDir.canonicalPath + '/' + name + '-store.json' ); $.scsave( data, _dataDir.canonicalPath + '/' + name + '-store.json' );