Fix 1.12.1+ NoSuchMethodError in /break (fixes #1438)

This commit is contained in:
md678685 2017-08-04 11:55:19 +01:00
parent 4802744ce7
commit ec61ffcaad

View File

@ -19,7 +19,7 @@ public class Commandbreak extends EssentialsCommand {
//TODO: Switch to use util class
@Override
public void run(final Server server, final User user, final String commandLabel, final String[] args) throws Exception {
final Block block = user.getBase().getTargetBlock((HashSet<Byte>) null, 20);
final Block block = user.getBase().getTargetBlock((Set<Material>) null, 20);
if (block == null) {
throw new NoChargeException();
}