Check only for current event material

Signed-off-by: Etzelia <etzelia@hotmail.com>
grief
Etzelia 2020-07-29 21:11:02 -05:00
parent 4725a9e15a
commit 316efb0ba7
No known key found for this signature in database
GPG Key ID: 708511AE7ABC5314
1 changed files with 1 additions and 1 deletions

View File

@ -98,7 +98,7 @@ public class BlockBreakListener implements Listener {
int strikes = 0;
for (BlockEvent e : map.getOrDefault(event.getPlayer(), new ArrayList<>())) {
if (e.isParent()) {
if (e.isParent() && e.getMaterial().name().equals(event.getMaterial().name())) {
strikes++;
}
}