minor fixes

This commit is contained in:
zeng-github01 2025-08-29 00:45:08 +08:00
parent 312c31f66f
commit a2a2b5f9de

View File

@ -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")
}