milo shop updates

This commit is contained in:
kepler155c@gmail.com
2019-01-11 16:14:10 -05:00
parent 17912f6054
commit 11da26e078

View File

@@ -2,6 +2,7 @@ local Config = require('config')
local Event = require('event')
local itemDB = require('itemDB')
local Milo = require('milo')
local Sound = require('sound')
local UI = require('ui')
local Util = require('util')
@@ -161,6 +162,7 @@ Event.on('store_provide', function(_, item, quantity, uid)
Milo:queueRequest({ }, function()
local count = Milo:eject(itemDB:splitKey(item), quantity)
os.queueEvent('store_provided', uid, count)
Sound.play('entity.villager.no')
end)
end)