Fix buckets not being checked properly.

This commit is contained in:
sk89q 2014-08-24 02:26:09 -07:00
parent 0659a5263a
commit 7da3cc224b

View File

@ -152,7 +152,9 @@ public void onPlaceBlock(final PlaceBlockEvent event) {
final RegionAssociable associable = createRegionAssociable(event.getCause());
// Don't check liquid flow unless it's enabled
if (Materials.isLiquid(type) && !getWorldConfig(event.getWorld()).checkLiquidFlow) {
if (event.getCause().getRootCause() instanceof Block
&& Materials.isLiquid(type)
&& !getWorldConfig(event.getWorld()).checkLiquidFlow) {
return;
}