mirror of
https://github.com/plexusorg/Plex-FAWE.git
synced 2025-06-12 04:23:54 +00:00
Add -w flag to butcher for water mobs
beb784e0ffe1d8a8cf678912dbd6207e96afcfc8 Co-Authored-By: Lewis B <17665267+lewisjb@users.noreply.github.com>
This commit is contained in:
@ -40,6 +40,7 @@ import org.bukkit.entity.Projectile;
|
||||
import org.bukkit.entity.TNTPrimed;
|
||||
import org.bukkit.entity.Tameable;
|
||||
import org.bukkit.entity.Villager;
|
||||
import org.bukkit.entity.WaterMob;
|
||||
import org.bukkit.entity.minecart.ExplosiveMinecart;
|
||||
|
||||
import static com.google.common.base.Preconditions.checkNotNull;
|
||||
@ -147,4 +148,9 @@ class BukkitEntityProperties implements EntityProperties {
|
||||
public boolean isPasteable() {
|
||||
return !(entity instanceof Player || entity instanceof ComplexEntityPart);
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean isWaterCreature() {
|
||||
return entity instanceof WaterMob;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user