From f11e2ba6d69707c37882759ef0fd660eb8e42e1d Mon Sep 17 00:00:00 2001 From: Wizjany Date: Sat, 17 Mar 2012 23:48:46 -0400 Subject: [PATCH] Added Falling sand/gravel entities to /remove command --- src/main/java/com/sk89q/worldedit/EntityType.java | 1 + src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/src/main/java/com/sk89q/worldedit/EntityType.java b/src/main/java/com/sk89q/worldedit/EntityType.java index 10451c195..aa7793518 100644 --- a/src/main/java/com/sk89q/worldedit/EntityType.java +++ b/src/main/java/com/sk89q/worldedit/EntityType.java @@ -25,6 +25,7 @@ package com.sk89q.worldedit; public enum EntityType { ARROWS, ITEMS, + FALLING_BLOCKS, PAINTINGS, BOATS, MINECARTS, diff --git a/src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java b/src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java index e624e9b4b..ebed268cd 100644 --- a/src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java +++ b/src/main/java/com/sk89q/worldedit/bukkit/BukkitWorld.java @@ -36,6 +36,7 @@ import org.bukkit.entity.Arrow; import org.bukkit.entity.Boat; import org.bukkit.entity.Entity; import org.bukkit.entity.ExperienceOrb; +import org.bukkit.entity.FallingSand; import org.bukkit.entity.HumanEntity; import org.bukkit.entity.Item; import org.bukkit.entity.LivingEntity; @@ -602,6 +603,11 @@ public class BukkitWorld extends LocalWorld { ent.remove(); ++num; } + } else if (type == EntityType.FALLING_BLOCKS) { + if (ent instanceof FallingSand) { + ent.remove(); + ++num; + } } else if (type == EntityType.MINECARTS) { if (ent instanceof Minecart) { ent.remove();