Fix /none

This commit is contained in:
Jesse Boyd
2018-09-08 03:17:27 +10:00
parent fc949e3efc
commit ffa9eace6f
2 changed files with 2 additions and 2 deletions

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 {