Skip to content

Commit 6224b4c

Browse files
committed
fix: null player data in gui
* create default instead of returning null
1 parent 1402e68 commit 6224b4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spigot/src/main/java/me/wolfyscript/customcrafting/utils/PlayerUtil.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ private PlayerUtil() {
4141

4242
public static CCPlayerData getStore(Player player) {
4343
if (player == null) {
44-
return null;
44+
return CCPlayerData.createDefault();
4545
}
4646
return WolfyUtilCore.getInstance().getPersistentStorage().getOrCreatePlayerStorage(player)
4747
.computeIfAbsent(CCPlayerData.class, (type) -> CCPlayerData.createDefault())

0 commit comments

Comments
 (0)