mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-11-02 10:57:11 +00:00
Fix block setting while not in fast mode
This commit is contained in:
parent
be320f60e1
commit
1af61f827b
@ -234,7 +234,7 @@ public class EditSession {
|
||||
result = world.setBlockType(pt, 0);
|
||||
}
|
||||
} else {
|
||||
result = world.setBlock(pt, block, fastMode);
|
||||
result = world.setBlock(pt, block, !fastMode);
|
||||
}
|
||||
|
||||
return result;
|
||||
|
@ -259,14 +259,10 @@ public class DefaultNmsBlock extends NmsBlock {
|
||||
world.copyToWorld(position, (BaseBlock) block);
|
||||
}
|
||||
|
||||
changed = craftWorld.getHandle().setData(x, y, z, block.getData(), 0);
|
||||
|
||||
if (changed) {
|
||||
if (notifyAdjacent) {
|
||||
craftWorld.getHandle().update(x, y, z, block.getId());
|
||||
} else {
|
||||
craftWorld.getHandle().notify(x, y, z);
|
||||
}
|
||||
changed = craftWorld.getHandle().setData(x, y, z, block.getData(), 0) || changed;
|
||||
if (changed && notifyAdjacent) {
|
||||
craftWorld.getHandle().notify(x, y, z);
|
||||
craftWorld.getHandle().update(x, y, z, block.getId());
|
||||
}
|
||||
|
||||
return changed;
|
||||
|
Loading…
Reference in New Issue
Block a user