mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-27 15:06:41 -04:00
Merge branch 'master' of https://github.com/MightyPirates/OpenComputers into MC1.7
This commit is contained in:
commit
c8fa07c2b9
@ -94,7 +94,7 @@ class Hologram extends Environment with SidedEnvironment with Analyzable {
|
|||||||
if (x < 0 || x >= width) throw new ArrayIndexOutOfBoundsException()
|
if (x < 0 || x >= width) throw new ArrayIndexOutOfBoundsException()
|
||||||
val z = args.checkInteger(1) - 1
|
val z = args.checkInteger(1) - 1
|
||||||
if (z < 0 || z >= width) throw new ArrayIndexOutOfBoundsException()
|
if (z < 0 || z >= width) throw new ArrayIndexOutOfBoundsException()
|
||||||
val value = args.checkInteger(2)
|
val value = args.checkDouble(2).longValue.intValue
|
||||||
volume(x + z * width) = value
|
volume(x + z * width) = value
|
||||||
setDirty(x, z)
|
setDirty(x, z)
|
||||||
null
|
null
|
||||||
|
@ -259,7 +259,7 @@ object Component {
|
|||||||
def checkInteger(index: Int) = {
|
def checkInteger(index: Int) = {
|
||||||
checkIndex(index, "number")
|
checkIndex(index, "number")
|
||||||
args(index) match {
|
args(index) match {
|
||||||
case value: java.lang.Double => value.longValue.intValue
|
case value: java.lang.Double => value.intValue
|
||||||
case value => throw typeError(index, value, "number")
|
case value => throw typeError(index, value, "number")
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user