Various minor fixes

Fix drain
Fix some messages lacking prefix
Fix non persistent brushes
This commit is contained in:
Jesse Boyd
2018-10-13 15:15:20 +11:00
parent 1b7ac7a0bc
commit 1a12c065a1
6 changed files with 24 additions and 15 deletions

View File

@ -1043,6 +1043,15 @@ public class LocalSession implements TextureHolder {
} else {
previous = this.tools[type.getInternalId()];
this.tools[type.getInternalId()] = tool;
if (tool != null) {
hasTool = true;
} else {
hasTool = false;
for (Tool i : this.tools) if (i != null) {
hasTool = true;
break;
}
}
}
if (previous != null && player != null && previous instanceof BrushTool) {
BrushTool brushTool = (BrushTool) previous;