Also permit hoppers.

This commit is contained in:
sk89q 2015-01-04 16:09:57 -08:00
parent e9d64dbf03
commit e61b2e18c1

View File

@ -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);