mirror of
https://github.com/MightyPirates/OpenComputers.git
synced 2025-09-19 04:06:43 -04:00
minor fixes
This commit is contained in:
parent
312c31f66f
commit
a2a2b5f9de
@ -51,7 +51,7 @@ class UpgradeLeash(val host: Entity with li.cil.oc.api.internal.Drone) extends A
|
||||
|
||||
override def position = BlockPosition(host.asInstanceOf[Entity])
|
||||
|
||||
@Callback(doc = """function(side:number):boolean -- Tries to put an entity on the specified side of the device onto a leash.""")
|
||||
@Callback(doc = """function(side:number):boolean, string -- Tries to put an entity on the specified side of the device onto a leash.""")
|
||||
def leash(context: Context, args: Arguments): Array[AnyRef] = {
|
||||
if (leashedEntities.size >= MaxLeashedEntities) return result(Unit, "too many leashed entities")
|
||||
val side = args.checkSideAny(0)
|
||||
@ -67,7 +67,7 @@ class UpgradeLeash(val host: Entity with li.cil.oc.api.internal.Drone) extends A
|
||||
result(true)
|
||||
}
|
||||
else {
|
||||
result(false, "don't has leash to be shrink")
|
||||
result(false, "don't have leash to be shrink")
|
||||
}
|
||||
case _ => result(false, "no unleashed entity")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user