3
0
Mirror von https://github.com/IntellectualSites/FastAsyncWorldEdit.git synchronisiert 2024-12-26 02:50:06 +01: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); Vector pt = new Vector(x, y, z);
int curBlockType = getBlock(pt).getID(); int curBlockType = getBlock(pt).getID();
if (fromBlockTypes == null && curBlockType != 0 || if ((fromBlockTypes == null && curBlockType != 0) ||
fromBlockTypes.contains(curBlockType)) { (fromBlockTypes != null &&
fromBlockTypes.contains(curBlockType))) {
if (setBlock(pt, toBlock)) { if (setBlock(pt, toBlock)) {
affected++; affected++;
} }