From 71ee3501721fde792bb7091883ef6704ee059296 Mon Sep 17 00:00:00 2001 From: sk89q Date: Thu, 3 Apr 2014 19:15:34 -0700 Subject: [PATCH] Ensure that air blocks always have data = 0. --- .../worldedit/extent/validation/DataValidatorExtent.java | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/main/java/com/sk89q/worldedit/extent/validation/DataValidatorExtent.java b/src/main/java/com/sk89q/worldedit/extent/validation/DataValidatorExtent.java index bc26f71b4..91e9b9daa 100644 --- a/src/main/java/com/sk89q/worldedit/extent/validation/DataValidatorExtent.java +++ b/src/main/java/com/sk89q/worldedit/extent/validation/DataValidatorExtent.java @@ -60,6 +60,10 @@ public class DataValidatorExtent extends AbstractDelegateExtent { return false; } + if (type == 0) { + block.setData(0); + } + return super.setBlock(location, block); } }