forked from BRNSystems/Server_storage
		
	Test fix
This commit is contained in:
		@@ -4,14 +4,14 @@ org.gradle.jvmargs=-Xmx1G
 | 
			
		||||
# check these on https://modmuss50.me/fabric.html
 | 
			
		||||
 | 
			
		||||
minecraft_version=1.21
 | 
			
		||||
yarn_mappings=1.21+build.7
 | 
			
		||||
yarn_mappings=1.21+build.8
 | 
			
		||||
loader_version=0.15.11
 | 
			
		||||
 | 
			
		||||
# Fabric API
 | 
			
		||||
fabric_version=0.100.4+1.21
 | 
			
		||||
fabric_version=0.100.6+1.21
 | 
			
		||||
 | 
			
		||||
# Mod Properties
 | 
			
		||||
mod_version=3.0.9
 | 
			
		||||
mod_version=3.1.0
 | 
			
		||||
maven_group=systems.brn
 | 
			
		||||
archives_base_name=Serverstorage
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -124,7 +124,7 @@ public class InventoryInterfaceBlockEntity extends BlockEntity {
 | 
			
		||||
    }
 | 
			
		||||
 | 
			
		||||
    public static <T extends BlockEntity> void tick(World world, BlockPos blockPos, BlockState ignoredState, T ignoredt) {
 | 
			
		||||
        if (!world.getGameRules().getBoolean(ServerStorage_Interface_Enable)){
 | 
			
		||||
        if (!world.getGameRules().getBoolean(ServerStorage_Interface_Enable)) {
 | 
			
		||||
            return;
 | 
			
		||||
        }
 | 
			
		||||
        InventoryInterfaceBlockEntity blockEntity = (InventoryInterfaceBlockEntity) world.getBlockEntity(blockPos);
 | 
			
		||||
@@ -157,12 +157,12 @@ public class InventoryInterfaceBlockEntity extends BlockEntity {
 | 
			
		||||
                            insertingStack.setCount(count);
 | 
			
		||||
                            if (count > 0) {
 | 
			
		||||
                                int canPutInside = count - blockEntity.network.putItemStackRemainder(insertingStack.copy());
 | 
			
		||||
                                blockEntity.network.updateDisplays();
 | 
			
		||||
                                if (canPutInside > 0) {
 | 
			
		||||
                                    removeFromInventory(targetedBlockEntityInventory, insertingStack.copy(), canPutInside);
 | 
			
		||||
                                }
 | 
			
		||||
                            }
 | 
			
		||||
                        }
 | 
			
		||||
                        blockEntity.network.updateDisplays();
 | 
			
		||||
                    }
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 
 | 
			
		||||
@@ -98,7 +98,6 @@ public class HardDrive {
 | 
			
		||||
    public ItemStack getCommitedStack() {
 | 
			
		||||
        ItemStack tempDriveStack = driveStack.copy();
 | 
			
		||||
        driveStack = ensureUUID(tempDriveStack);
 | 
			
		||||
        loadComponents();
 | 
			
		||||
        updateData();
 | 
			
		||||
        saveComponents();
 | 
			
		||||
        return driveStack;
 | 
			
		||||
 
 | 
			
		||||
@@ -21,7 +21,9 @@ public class StorageOperations {
 | 
			
		||||
            Map<ItemStack, Integer> filteredMap = new HashMap<>();
 | 
			
		||||
            for (Map.Entry<ItemStack, Integer> entry : itemStackMap.entrySet()) {
 | 
			
		||||
                if (filterItem(entry.getKey().getItem(), query)){
 | 
			
		||||
                    filteredMap.put(entry.getKey(), entry.getValue());
 | 
			
		||||
                    ItemStack stack = entry.getKey();
 | 
			
		||||
                    stack.setCount(Math.min(entry.getValue(), stack.getMaxCount()));
 | 
			
		||||
                    filteredMap.put(stack, entry.getValue());
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
            sortedMap.putAll(filteredMap);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user