Skip to content

Commit f9267de

Browse files
Add null check and bump version
1 parent 8bb7c3c commit f9267de

File tree

3 files changed

+6
-2
lines changed

3 files changed

+6
-2
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ plugins {
77
}
88

99
group = 'org.parallelmc'
10-
version = '1.18.2'
10+
version = '1.18.3'
1111
description = 'A set of utilities and features for use on the Parallel Minecraft server'
1212

1313
java {

src/main/java/parallelmc/parallelutils/Constants.java

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

33
public class Constants {
44

5-
public static final Version VERSION = new Version(1, 18, 2);
5+
public static final Version VERSION = new Version(1, 18, 3);
66
public static final String PLUGIN_NAME = "ParallelUtils";
77
public static final String DEFAULT_WORLD = "world2";
88
}

src/main/java/parallelmc/parallelutils/modules/parallelitems/PlayerInteractListener.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,10 @@ public void onPlayerInteract(PlayerInteractEvent event) {
9696

9797
ItemMeta meta = item.getItemMeta();
9898

99+
if (meta == null) {
100+
return;
101+
}
102+
99103
Integer val = meta.getPersistentDataContainer().get(customKey, PersistentDataType.INTEGER);
100104
if (val == null) {
101105
return;

0 commit comments

Comments
 (0)