This commit is contained in:
Florian Nücke 2014-03-18 09:32:56 +01:00
commit 61a2ceaf3d
2 changed files with 1 additions and 3 deletions

View File

@ -7,12 +7,10 @@ import java.util.logging.Level
import li.cil.oc.api.machine.{Architecture, LimitReachedException, ExecutionResult}
import li.cil.oc.api.network.ComponentConnector
import li.cil.oc.common.SaveHandler
import li.cil.oc.server.component
import li.cil.oc.util.ExtendedLuaState.extendLuaState
import li.cil.oc.util.{GameTimeFormatter, LuaStateFactory}
import li.cil.oc.{api, OpenComputers, server, Settings}
import net.minecraft.nbt.NBTTagCompound
import net.minecraft.tileentity.TileEntity
import net.minecraft.world.ChunkCoordIntPair
import scala.collection.convert.WrapAsScala._
import scala.collection.mutable

View File

@ -259,7 +259,7 @@ object Component {
def checkInteger(index: Int) = {
checkIndex(index, "number")
args(index) match {
case value: java.lang.Double => value.intValue
case value: java.lang.Double => value.longValue.intValue
case value => throw typeError(index, value, "number")
}
}