minor tweaks

This commit is contained in:
kepler155c@gmail.com
2019-07-08 00:15:50 -04:00
parent b86f32b83a
commit d2e25cb951
5 changed files with 7 additions and 11 deletions

View File

@@ -131,7 +131,7 @@ local function run(member, point)
local function emptySlots(retain, pt)
local slots = turtle.getFilledSlots()
for _,slot in pairs(slots) do
if not retain[slot.key] then
if not retain[slot.key] and not slot.name:find('turtle') then
turtle.select(slot.index)
if pt then
turtle.dropAt(pt, 64)

View File

@@ -222,8 +222,8 @@ function Milo:eject(item, count)
total = total + amount
count = count - amount
Sound.play('ui.button.click')
--Sound.play('entity.illusion_illager.death', .3)
--Sound.play('ui.button.click')
Sound.play('entity.illusion_illager.death', .3)
turtle.emptyInventory()
end
return total

View File

@@ -2,11 +2,8 @@ local fs = _G.fs
local peripheral = _G.peripheral
local shell = _ENV.shell
if fs.exists('packages/milo/Milo.lua') then
fs.delete('packages/milo/Milo.lua')
fs.delete('packages/milo/plugins/listing.lua')
end
fs.delete('packages/milo/Milo.lua')
fs.delete('packages/milo/plugins/listing.lua')
fs.delete('packages/milo/apis/milo.lua')
fs.delete('packages/milo/plugins/manipulator.lua')

View File

@@ -592,7 +592,7 @@ Event.addRoutine(function()
_G._syslog({ distance = distance, maxDistance = maxDistance })
if distance > maxDistance + 16 then
if distance > maxDistance + 32 then
term.clear()
term.setCursorPos(1, 1)
_G.printError('WARNING\n\nTurtle is outside the mining area\n')

View File

@@ -7,7 +7,7 @@
-- [ 'forestry' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/forestry/.package',
[ 'games' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/games/.package',
-- [ 'glasses' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/glasses/.package',
[ 'gps' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/gps/.package',
[ 'gps' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/gps/.package',
[ 'mbs' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/mbs/.package',
[ 'milo' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/milo/.package',
[ 'miners' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/miners/.package',
@@ -16,7 +16,6 @@
-- [ 'pickup' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/pickup/.package',
[ 'recipeBook' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/recipeBook/.package',
[ 'shellex' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/shellex/.package',
-- [ 'storage' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/storage/.package',
[ 'swshop' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/swshop/.package',
[ 'turtle' ] = 'https://raw.githubusercontent.com/kepler155c/opus-apps/develop-1.8/turtle/.package',
}