Fixed console commands

This commit is contained in:
Robin Kupper
2011-10-05 23:39:46 +02:00
parent a4cc39622d
commit 6098f8c81e

View File

@@ -13,8 +13,9 @@ public class Session
Session(LogBlock logblock, Player player) {
toolData = new HashMap<Tool, ToolData>();
for (final Tool tool : logblock.getConfig().toolsByType.values())
toolData.put(tool, new ToolData(tool, logblock, player));
if (player != null)
for (final Tool tool : logblock.getConfig().toolsByType.values())
toolData.put(tool, new ToolData(tool, logblock, player));
}
}