mirror of
https://github.com/boy0001/FastAsyncWorldedit.git
synced 2024-11-24 19:46:34 +01:00
*Forgot vectors weren't mutable
This commit is contained in:
parent
ce140a95c7
commit
c5fc8c6ef8
@ -139,9 +139,9 @@ public class HistoryCommands {
|
|||||||
World world = player.getWorld();
|
World world = player.getWorld();
|
||||||
WorldVector origin = player.getPosition();
|
WorldVector origin = player.getPosition();
|
||||||
Vector bot = origin.subtract(radius, radius, radius);
|
Vector bot = origin.subtract(radius, radius, radius);
|
||||||
bot.setY(Math.max(0, bot.getY()));
|
bot = bot.setY(Math.max(0, bot.getY()));
|
||||||
Vector top = origin.add(radius, radius, radius);
|
Vector top = origin.add(radius, radius, radius);
|
||||||
top.setY(Math.min(255, top.getY()));
|
top = top.setY(Math.min(255, top.getY()));
|
||||||
RollbackDatabase database = DBHandler.IMP.getDatabase(world);
|
RollbackDatabase database = DBHandler.IMP.getDatabase(world);
|
||||||
final AtomicInteger count = new AtomicInteger();
|
final AtomicInteger count = new AtomicInteger();
|
||||||
database.getPotentialEdits(other, System.currentTimeMillis() - timeDiff, bot, top, new RunnableVal<DiskStorageHistory>() {
|
database.getPotentialEdits(other, System.currentTimeMillis() - timeDiff, bot, top, new RunnableVal<DiskStorageHistory>() {
|
||||||
|
Loading…
Reference in New Issue
Block a user