Mirror von
https://github.com/IntellectualSites/FastAsyncWorldEdit.git
synchronisiert 2024-11-05 11:00:05 +01:00
Fix block setting while not in fast mode
Dieser Commit ist enthalten in:
Ursprung
be320f60e1
Commit
1af61f827b
@ -234,7 +234,7 @@ public class EditSession {
|
|||||||
result = world.setBlockType(pt, 0);
|
result = world.setBlockType(pt, 0);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
result = world.setBlock(pt, block, fastMode);
|
result = world.setBlock(pt, block, !fastMode);
|
||||||
}
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
|
@ -259,14 +259,10 @@ public class DefaultNmsBlock extends NmsBlock {
|
|||||||
world.copyToWorld(position, (BaseBlock) block);
|
world.copyToWorld(position, (BaseBlock) block);
|
||||||
}
|
}
|
||||||
|
|
||||||
changed = craftWorld.getHandle().setData(x, y, z, block.getData(), 0);
|
changed = craftWorld.getHandle().setData(x, y, z, block.getData(), 0) || changed;
|
||||||
|
if (changed && notifyAdjacent) {
|
||||||
if (changed) {
|
craftWorld.getHandle().notify(x, y, z);
|
||||||
if (notifyAdjacent) {
|
craftWorld.getHandle().update(x, y, z, block.getId());
|
||||||
craftWorld.getHandle().update(x, y, z, block.getId());
|
|
||||||
} else {
|
|
||||||
craftWorld.getHandle().notify(x, y, z);
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return changed;
|
return changed;
|
||||||
|
Laden…
In neuem Issue referenzieren
Einen Benutzer sperren