milo tweaks

This commit is contained in:
kepler155c@gmail.com
2018-12-05 01:16:42 -05:00
parent c79c93e4d7
commit 74aa9829c3
3 changed files with 7 additions and 1 deletions

View File

@@ -1,6 +1,7 @@
local Config = require('config')
local Craft = require('craft2')
local itemDB = require('itemDB')
local Sound = require('sound')
local Util = require('util')
local os = _G.os
@@ -228,6 +229,7 @@ end
function Milo:eject(item, count)
count = self.context.storage:export(self.context.turtleInventory, nil, count, item)
Sound.play('ui.button.click')
turtle.emptyInventory()
return count
end