Data fix for previous bug
This commit is contained in:
		@@ -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.7
 | 
			
		||||
mod_version=1.4.8
 | 
			
		||||
maven_group=systems.brn
 | 
			
		||||
archives_base_name=servershop
 | 
			
		||||
# Dependencies
 | 
			
		||||
 
 | 
			
		||||
@@ -16,6 +16,8 @@ import java.util.Scanner;
 | 
			
		||||
import java.util.concurrent.ConcurrentHashMap;
 | 
			
		||||
import java.util.concurrent.locks.ReentrantLock;
 | 
			
		||||
 | 
			
		||||
import static systems.brn.servershop.lib.Util.hasPrices;
 | 
			
		||||
 | 
			
		||||
public class PriceStorage {
 | 
			
		||||
 | 
			
		||||
    public final MinecraftServer server;
 | 
			
		||||
@@ -86,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) {
 | 
			
		||||
                        if (itemPriceRecord.stack() != null && !hasPrices(itemPriceRecord.stack())) {
 | 
			
		||||
                            prices.put(itemPriceRecord.stack(), itemPriceRecord);
 | 
			
		||||
                        }
 | 
			
		||||
                    }
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user