mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-12-23 09:37:51 +01:00
Track BlockProjectileSource causes.
This commit is contained in:
parent
662ae2bc84
commit
37e66dae7d
@ -36,6 +36,7 @@
|
||||
import org.bukkit.entity.Tameable;
|
||||
import org.bukkit.entity.Vehicle;
|
||||
import org.bukkit.metadata.Metadatable;
|
||||
import org.bukkit.projectiles.BlockProjectileSource;
|
||||
|
||||
import javax.annotation.Nullable;
|
||||
import java.util.ArrayList;
|
||||
@ -289,6 +290,8 @@ private void addAll(@Nullable Object... element) {
|
||||
} else if (o instanceof Tameable) {
|
||||
indirect = true;
|
||||
addAll(((Tameable) o).getOwner());
|
||||
} else if (o instanceof BlockProjectileSource) {
|
||||
addAll(((BlockProjectileSource) o).getBlock());
|
||||
}
|
||||
|
||||
// Add manually tracked parent causes
|
||||
|
Loading…
Reference in New Issue
Block a user