This commit is contained in:
Bruno Rybársky 2024-09-02 11:42:51 +02:00
parent 375750fca6
commit 537a428d2c
2 changed files with 2 additions and 2 deletions

@ -6,7 +6,7 @@ minecraft_version=1.21.1
yarn_mappings=1.21.1+build.3
loader_version=0.16.2
# Mod Properties
mod_version=1.4.8
mod_version=1.4.9
maven_group=systems.brn
archives_base_name=servershop
# Dependencies

@ -88,7 +88,7 @@ public class PriceStorage {
for (NbtElement element : nbtList) {
if (element instanceof NbtCompound nbt) {
ItemPriceRecord itemPriceRecord = ItemPriceRecord.fromNbt(nbt, wrapperLookup);
if (itemPriceRecord.stack() != null && !hasPrices(itemPriceRecord.stack())) {
if (itemPriceRecord != null && itemPriceRecord.stack() != null && !hasPrices(itemPriceRecord.stack())) {
prices.put(itemPriceRecord.stack(), itemPriceRecord);
}
}