Fixed robots derping around with tools. Seems I only tested them *without* tools recently... go me -.-

Updated Forge dependency info in mcmod.info.
This commit is contained in:
Florian Nücke 2014-04-30 12:56:07 +02:00
parent b5b038aa5b
commit 90279bc2a4
2 changed files with 3 additions and 3 deletions

View File

@ -5,10 +5,10 @@
"version": "${version}", "version": "${version}",
"mcversion": "${mcversion}", "mcversion": "${mcversion}",
"url": "https://github.com/MightyPirates/OpenComputers/wiki", "url": "https://github.com/MightyPirates/OpenComputers/wiki",
"authorList": ["Florian 'Sangar' Nücke", "Johannes 'Lord Joda' Lohrer", "Everyone who contributed to the mod on Github - thank you!"], "authorList": ["Florian 'Sangar' Nücke", "Johannes 'Lord Joda' Lohrer", "Everyone who contributed to the mod on Github - thank you!"],
"credits" : "Inspired by a couple of other mods, most notably ComputerCraft.", "credits" : "Inspired by a couple of other mods, most notably ComputerCraft.",
"logoFile" : "assets/opencomputers/textures/gui/logo.png", "logoFile" : "assets/opencomputers/textures/gui/logo.png",
"requiredMods": [ "Forge@[10.12.0.1024,)" ], "requiredMods": [ "Forge@[10.12.1.1060,)" ],
"dependencies": [ "dependencies": [
"BuildCraft|Energy", "BuildCraft|Energy",
"ComputerCraft", "ComputerCraft",

View File

@ -271,7 +271,7 @@ class Player(val robot: tileentity.Robot) extends EntityPlayer(robot.world, Play
} }
val hardness = block.getBlockHardness(world, x, y, z) val hardness = block.getBlockHardness(world, x, y, z)
val strength = getBreakSpeed(block, false, x, y, z, metadata) val strength = getBreakSpeed(block, false, metadata, x, y, z)
val breakTime = val breakTime =
if (cobwebOverride) Settings.get.swingDelay if (cobwebOverride) Settings.get.swingDelay
else hardness * 1.5 / strength else hardness * 1.5 / strength