fix //none for tools

This commit is contained in:
Jesse Boyd 2019-04-11 11:28:06 +10:00
parent a7c5580db3
commit f726c9afc4
No known key found for this signature in database
GPG Key ID: 59F1DE6293AF6E1F

View File

@ -1073,6 +1073,8 @@ public class LocalSession implements TextureHolder {
BrushCache.setTool(item, (BrushTool) tool);
if (tool != null) {
((BrushTool) tool).setHolder(item);
} else {
this.tools[type.getInternalId()] = null;
}
} else {
previous = this.tools[type.getInternalId()];