mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-26 22:43:40 -04:00
Merge branch 'master' of https://github.com/MightyPirates/OpenComputers into MC1.7
This commit is contained in:
commit
61a2ceaf3d
@ -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
|
||||
|
@ -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")
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user