mirror of
https://github.com/EngineHub/WorldGuard.git
synced 2024-11-27 13:07:29 +01:00
Also permit hoppers.
This commit is contained in:
parent
e9d64dbf03
commit
e61b2e18c1
@ -118,7 +118,8 @@ private boolean isWhitelisted(Cause cause, World world) {
|
||||
Object rootCause = cause.getRootCause();
|
||||
|
||||
if (rootCause instanceof Block) {
|
||||
return ((Block) rootCause).getType() == Material.HOPPER;
|
||||
Material type = ((Block) rootCause).getType();
|
||||
return type == Material.HOPPER || type == Material.DROPPER;
|
||||
} else if (rootCause instanceof Player) {
|
||||
Player player = (Player) rootCause;
|
||||
WorldConfiguration config = getWorldConfig(world);
|
||||
|
Loading…
Reference in New Issue
Block a user