Fix /none

This commit is contained in:
Jesse Boyd 2018-09-08 03:17:27 +10:00
parent fc949e3efc
commit ffa9eace6f
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F
2 changed files with 2 additions and 2 deletions

View File

@ -23,7 +23,7 @@ public class AsyncTabCompleteListener extends ATabCompleteListener {
List<String> result = this.onTab(event.getBuffer(), event.getSender());
if (result != null) {
event.setCompletions(result);
event.setHandled(true); // Doesn't work
event.setHandled(true);
}
}
}

View File

@ -1036,8 +1036,8 @@ public class LocalSession implements TextureHolder {
Tool previous;
if (player != null && (tool instanceof BrushTool || tool == null) && Settings.IMP.EXPERIMENTAL.PERSISTENT_BRUSHES && item.getNativeItem() != null) {
previous = BrushCache.getCachedTool(item);
BrushCache.setTool(item, (BrushTool) tool);
if (tool != null) {
BrushCache.setTool(item, (BrushTool) tool);
((BrushTool) tool).setHolder(item);
}
} else {