Merge branch 'master' of github.com:MightyPirates/OpenComputers into MC1.7

This commit is contained in:
Florian Nücke 2014-04-07 18:08:19 +02:00
commit b6b24c5780
6 changed files with 10 additions and 3 deletions

View File

@ -1,4 +1,5 @@
# This file contains the list of floppy disks that can be found as loot.
# Each entry is a mapping of folder name to disk label.
BetterShell=besh
OpenIRC=irc
OpenIRC=irc
TheDig=dig

View File

@ -11,7 +11,7 @@ end
local topic = args[1]
for path in string.gmatch(os.getenv("MANPATH"), "[^:]+") do
path = shell.resolve(fs.concat(path, topic), "man")
if fs.exists(path) and not fs.isDirectory(path) then
if path and fs.exists(path) and not fs.isDirectory(path) then
os.execute(os.getenv("PAGER") .. " " .. path)
os.exit()
end

View File

@ -7,7 +7,7 @@ local unicode = require("unicode")
local env = {
EDITOR="/bin/edit",
HOME="/home",
MANPATH="/usr/man",
MANPATH="/usr/man:.",
PAGER="/bin/more",
PATH="/bin:/usr/bin:/home/bin:.",
PS1="# ",

View File

@ -7,5 +7,11 @@ object CreativeTab extends CreativeTabs(CreativeTabs.getNextID, "OpenComputers")
override def getIconItemStack = Blocks.case1.createItemStack()
override def displayAllReleventItems(list: java.util.List[_]) = {
def add[T](list: java.util.List[T], value: Any) = list.add(value.asInstanceOf[T])
super.displayAllReleventItems(list)
Loot.disks.foreach(add(list, _))
}
override def getTranslatedTabLabel = getTabLabel
}