item db naming fix for items with diff names-nbt combinations
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
_G.requireInjector()
|
||||
|
||||
local ChestAdapter = require('chestAdapter18')
|
||||
local InventoryAdapter = require('inventoryAdapter')
|
||||
local Config = require('config')
|
||||
local Event = require('event')
|
||||
local itemDB = require('itemDB')
|
||||
@@ -16,11 +16,15 @@ local RESOURCE_FILE = 'usr/config/levelEmitter.db'
|
||||
multishell.setTitle(multishell.getCurrent(), 'Level Emitter')
|
||||
|
||||
local config = {
|
||||
inventoryDirection = { direction = 'north', wrapSide = 'back' },
|
||||
inventorySide = 'bottom',
|
||||
}
|
||||
Config.load('levelEmitter', config)
|
||||
Config.loadWithCheck('levelEmitter', config)
|
||||
|
||||
local inventoryAdapter = InventoryAdapter.wrap({ wrapSide = config.inventorySide })
|
||||
if not inventoryAdapter then
|
||||
error('No inventory found')
|
||||
end
|
||||
|
||||
local inventoryAdapter = ChestAdapter(config.inventoryDirection)
|
||||
local resources
|
||||
|
||||
local function getItem(items, inItem, ignoreDamage, ignoreNbtHash)
|
||||
|
||||
Reference in New Issue
Block a user