Not sure if this changes anything... Probably not, whatever.
This commit is contained in:
parent
6089934ffd
commit
262c470e7d
@ -30,11 +30,11 @@ public class WorldEditExtent extends AbstractLoggingExtent {
|
|||||||
protected void onBlockChange(final Vector vec, BaseBlock baseBlock) {
|
protected void onBlockChange(final Vector vec, BaseBlock baseBlock) {
|
||||||
final Block b = BukkitUtil.toLocation(world, vec).getBlock();
|
final Block b = BukkitUtil.toLocation(world, vec).getBlock();
|
||||||
final Player p = Bukkit.getPlayerExact(actor.getName());
|
final Player p = Bukkit.getPlayerExact(actor.getName());
|
||||||
Bukkit.getScheduler().scheduleSyncDelayedTask(new SkStuff(), new Runnable() {
|
Bukkit.getScheduler().scheduleSyncDelayedTask(new SkStuff(), new Runnable() { //Wait 1 tick to get the future block
|
||||||
@Override
|
@Override
|
||||||
public void run() {
|
public void run() {
|
||||||
Block futureB = BukkitUtil.toLocation(world, vec).getBlock();
|
Block futureB = BukkitUtil.toLocation(world, vec).getBlock();
|
||||||
Bukkit.getPluginManager().callEvent(new EvtWorldEditChange(p, b, futureB));
|
Bukkit.getPluginManager().callEvent(new EvtWorldEditChange(p, b, futureB));
|
||||||
}
|
}
|
||||||
}, 1L);
|
}, 1L);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user