World checks in BrushSettings don't offer any performance benefit

This commit is contained in:
MattBDev
2020-02-05 10:40:29 -05:00
parent 75653087b9
commit aa04b0c326
2 changed files with 1 additions and 16 deletions

View File

@ -491,7 +491,7 @@ public class BrushTool implements DoubleActionTraceTool, ScrollTool, MovableTool
Brush brush = current.getBrush();
if (brush == null) return false;
if (current.setWorld(player.getWorld().getName()) && !current.canUse(player)) {
if (!current.canUse(player)) {
player.print(Caption.of("fawe.error.no-perm" , StringMan.join(current.getPermissions(), ",")));
return false;
}