Skip to content

Commit 04b2bfc

Browse files
committed
Fixed A Retarded NPE
1 parent 7a8047b commit 04b2bfc

3 files changed

Lines changed: 3 additions & 5 deletions

File tree

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77
<groupId>me.nik</groupId>
88
<artifactId>CombatPlus</artifactId>
9-
<version>1.4.10</version>
9+
<version>1.4.11</version>
1010
<packaging>jar</packaging>
1111

1212
<name>CombatPlus</name>

src/main/java/me/nik/combatplus/listeners/Blocking.java

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,9 +40,7 @@ public void onBlock(PlayerInteractEvent e) {
4040
if (!e.getItem().getType().name().contains("SWORD")) return;
4141

4242
for (String s : interactiveBlocks) {
43-
if (block.getType().name().contains(s)) {
44-
return;
45-
}
43+
if (block != null && block.getType().name().contains(s)) return;
4644
}
4745

4846
Player p = e.getPlayer();

version.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
1.4.10
1+
1.4.11

0 commit comments

Comments
 (0)