From eee02565ca03e439c3de091e3087c81cd987132c Mon Sep 17 00:00:00 2001 From: Ferreira Christopher Date: Sun, 22 Jan 2012 12:02:11 +0100 Subject: [PATCH] Fix NPE in CylinderRegion --- src/main/java/com/sk89q/worldedit/regions/CylinderRegion.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/sk89q/worldedit/regions/CylinderRegion.java b/src/main/java/com/sk89q/worldedit/regions/CylinderRegion.java index fade6b34f..586547ab7 100644 --- a/src/main/java/com/sk89q/worldedit/regions/CylinderRegion.java +++ b/src/main/java/com/sk89q/worldedit/regions/CylinderRegion.java @@ -66,7 +66,7 @@ public class CylinderRegion extends AbstractRegion { */ public CylinderRegion(LocalWorld world, Vector center, Vector2D radius, int minY, int maxY) { super(world); - this.center = center; + setCenter(center); setRadius(radius); this.minY = minY; this.maxY = maxY;