Don't need a world for a chat lookup

This commit is contained in:
Robin Kupper
2011-08-20 22:22:54 +02:00
parent 0412191d6d
commit d6599da7b8
+2 -2
View File
@@ -152,7 +152,7 @@ public class QueryParams implements Cloneable
title.append("within " + radius + " blocks of clicked block ");
else if (radius == 0)
title.append("at clicked block ");
if (!(sel != null && prepareToolQuery))
if (world != null && !(sel != null && prepareToolQuery))
title.append("in " + friendlyWorldname(world.getName()) + " ");
if (sum != SummarizationMode.NONE)
title.append("summed up by " + (sum == SummarizationMode.TYPES ? "blocks" : "players") + " ");
@@ -399,7 +399,7 @@ public class QueryParams implements Cloneable
if (!types.contains(type))
types.add(type);
}
if (!prepareToolQuery) {
if (!prepareToolQuery && bct != BlockChangeType.CHAT) {
if (world == null)
throw new IllegalArgumentException("No world specified");
if (!logblock.getConfig().worlds.containsKey(world.getName().hashCode()))