mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2024-12-23 17:57:38 +00:00
Added Falling sand/gravel entities to /remove command
This commit is contained in:
parent
b6d1146427
commit
f11e2ba6d6
@ -25,6 +25,7 @@ package com.sk89q.worldedit;
|
|||||||
public enum EntityType {
|
public enum EntityType {
|
||||||
ARROWS,
|
ARROWS,
|
||||||
ITEMS,
|
ITEMS,
|
||||||
|
FALLING_BLOCKS,
|
||||||
PAINTINGS,
|
PAINTINGS,
|
||||||
BOATS,
|
BOATS,
|
||||||
MINECARTS,
|
MINECARTS,
|
||||||
|
@ -36,6 +36,7 @@ import org.bukkit.entity.Arrow;
|
|||||||
import org.bukkit.entity.Boat;
|
import org.bukkit.entity.Boat;
|
||||||
import org.bukkit.entity.Entity;
|
import org.bukkit.entity.Entity;
|
||||||
import org.bukkit.entity.ExperienceOrb;
|
import org.bukkit.entity.ExperienceOrb;
|
||||||
|
import org.bukkit.entity.FallingSand;
|
||||||
import org.bukkit.entity.HumanEntity;
|
import org.bukkit.entity.HumanEntity;
|
||||||
import org.bukkit.entity.Item;
|
import org.bukkit.entity.Item;
|
||||||
import org.bukkit.entity.LivingEntity;
|
import org.bukkit.entity.LivingEntity;
|
||||||
@ -602,6 +603,11 @@ public class BukkitWorld extends LocalWorld {
|
|||||||
ent.remove();
|
ent.remove();
|
||||||
++num;
|
++num;
|
||||||
}
|
}
|
||||||
|
} else if (type == EntityType.FALLING_BLOCKS) {
|
||||||
|
if (ent instanceof FallingSand) {
|
||||||
|
ent.remove();
|
||||||
|
++num;
|
||||||
|
}
|
||||||
} else if (type == EntityType.MINECARTS) {
|
} else if (type == EntityType.MINECARTS) {
|
||||||
if (ent instanceof Minecart) {
|
if (ent instanceof Minecart) {
|
||||||
ent.remove();
|
ent.remove();
|
||||||
|
Loading…
Reference in New Issue
Block a user