mirror of
https://github.com/EssentialsX/Essentials.git
synced 2024-12-23 09:37:50 +01:00
Fix 1.12.1+ NoSuchMethodError in /break (fixes #1438)
This commit is contained in:
parent
4802744ce7
commit
ec61ffcaad
@ -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();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user