Sync with L2jServer HighFive Mar 25th 2015.

This commit is contained in:
MobiusDev
2015-03-25 06:48:51 +00:00
parent e0c66b1412
commit 82606870c0
194 changed files with 2619 additions and 2869 deletions

View File

@ -148,12 +148,11 @@ public abstract class DocumentBase
protected final Logger _log = Logger.getLogger(getClass().getName());
private final File _file;
protected Map<String, String[]> _tables;
protected final Map<String, String[]> _tables = new HashMap<>();
protected DocumentBase(File pFile)
{
_file = pFile;
_tables = new HashMap<>();
}
public Document parse()
@ -184,7 +183,7 @@ public abstract class DocumentBase
protected void resetTable()
{
_tables = new HashMap<>();
_tables.clear();
}
protected void setTable(String name, String[] table)
@ -1189,9 +1188,9 @@ public abstract class DocumentBase
{
int old = mask;
String item = st.nextToken().trim();
if (ItemTable._slots.containsKey(item))
if (ItemTable.SLOTS.containsKey(item))
{
mask |= ItemTable._slots.get(item);
mask |= ItemTable.SLOTS.get(item);
}
if (old == mask)

View File

@ -176,9 +176,6 @@ public final class DocumentItem extends DocumentBase
}
}
/**
* @return
*/
public List<L2Item> getItemList()
{
return _itemsInFile;