Fixes #251
This commit is contained in:
parent
eee32ca27a
commit
39158816cf
@ -12,7 +12,6 @@ import com.boydti.fawe.object.MaskedFaweQueue;
|
|||||||
import com.boydti.fawe.object.RegionWrapper;
|
import com.boydti.fawe.object.RegionWrapper;
|
||||||
import com.boydti.fawe.object.changeset.FaweChangeSet;
|
import com.boydti.fawe.object.changeset.FaweChangeSet;
|
||||||
import com.boydti.fawe.util.StringMan;
|
import com.boydti.fawe.util.StringMan;
|
||||||
import com.boydti.fawe.util.TaskManager;
|
|
||||||
import com.boydti.fawe.util.WEManager;
|
import com.boydti.fawe.util.WEManager;
|
||||||
import com.google.common.base.Preconditions;
|
import com.google.common.base.Preconditions;
|
||||||
import com.google.common.collect.BiMap;
|
import com.google.common.collect.BiMap;
|
||||||
@ -309,11 +308,10 @@ public class Sniper {
|
|||||||
PerformBrush performerBrush = (PerformBrush) sniperTool.getCurrentBrush();
|
PerformBrush performerBrush = (PerformBrush) sniperTool.getCurrentBrush();
|
||||||
performerBrush.initP(snipeData);
|
performerBrush.initP(snipeData);
|
||||||
}
|
}
|
||||||
TaskManager.IMP.async(new Runnable() {
|
final FawePlayer<Player> fp = FawePlayer.wrap(getPlayer());
|
||||||
|
fp.runAsyncIfFree(new Runnable() {
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
FawePlayer<Player> fp = FawePlayer.wrap(getPlayer());
|
|
||||||
fp.setMeta("fawe_action", true);
|
|
||||||
try {
|
try {
|
||||||
boolean result = brush.perform(snipeAction, snipeData, targetBlock, lastBlock);
|
boolean result = brush.perform(snipeAction, snipeData, targetBlock, lastBlock);
|
||||||
if (result) {
|
if (result) {
|
||||||
@ -322,8 +320,6 @@ public class Sniper {
|
|||||||
world.commit();
|
world.commit();
|
||||||
} catch (Throwable e) {
|
} catch (Throwable e) {
|
||||||
e.printStackTrace();
|
e.printStackTrace();
|
||||||
} finally {
|
|
||||||
fp.deleteMeta("fawe_action");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user