3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-09-06 16:12:51 +02:00

Fixed bug with //replace causing a NullPointerException.

Dieser Commit ist enthalten in:
sk89q 2010-11-06 22:07:16 -07:00
Ursprung a20ecc0887
Commit 19f7456c51

Datei anzeigen

@ -630,8 +630,9 @@ public class EditSession {
Vector pt = new Vector(x, y, z);
int curBlockType = getBlock(pt).getID();
if (fromBlockTypes == null && curBlockType != 0 ||
fromBlockTypes.contains(curBlockType)) {
if ((fromBlockTypes == null && curBlockType != 0) ||
(fromBlockTypes != null &&
fromBlockTypes.contains(curBlockType))) {
if (setBlock(pt, toBlock)) {
affected++;
}