Update EpicHoppers-Plugin/src/main/java/com/songoda/epichoppers/hooks/HookGriefPrevention.java

This commit is contained in:
Brianna O'Keefe 2019-01-13 10:44:12 +00:00
parent 6057155a7e
commit 975fdefe02

View File

@ -24,7 +24,7 @@ public class HookGriefPrevention implements ProtectionPluginHook {
@Override
public boolean canBuild(Player player, Location location) {
Claim claim = griefPrevention.dataStore.getClaimAt(location, false, null);
return claim != null && claim.allowBuild(player, Material.SPAWNER) == null;
return claim != null && claim.allowBuild(player, Material.HOPPER) == null;
}
}