mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-18 11:48:02 -04:00
undid the Arguments.checkInteger change since it can break things (and did!), checking for actual int byte mask in hologram manually now
This commit is contained in:
parent
296daa7e1c
commit
3b5bb9487b
@ -94,7 +94,7 @@ class Hologram extends Environment with SidedEnvironment with Analyzable {
|
||||
if (x < 0 || x >= width) throw new ArrayIndexOutOfBoundsException()
|
||||
val z = args.checkInteger(1) - 1
|
||||
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
|
||||
setDirty(x, z)
|
||||
null
|
||||
|
@ -259,7 +259,7 @@ object Component {
|
||||
def checkInteger(index: Int) = {
|
||||
checkIndex(index, "number")
|
||||
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")
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user