mirror of
https://github.com/kami-blue/client
synced 2025-02-20 23:27:14 +00:00
Fix customsize #tunnel if AutoTunnel settings are default (#876)
This commit is contained in:
parent
cbb05403a2
commit
4bb6c80506
@ -12,6 +12,7 @@ import me.zeroeightsix.kami.util.MessageSendHelper
|
||||
|
||||
/**
|
||||
* @author dominikaaaa
|
||||
* Updated by pNoName on 25/05/20
|
||||
*/
|
||||
@Module.Info(
|
||||
name = "AutoTunnel",
|
||||
@ -44,7 +45,13 @@ class AutoTunnel : Module() {
|
||||
}
|
||||
|
||||
private fun sendTunnel() {
|
||||
val current = arrayOf("tunnel", height.value.toString(), width.value.toString(), "1000000")
|
||||
var current = arrayOf("")
|
||||
if (height.value == 2 && width.value == 1) {
|
||||
current = arrayOf("tunnel")
|
||||
}
|
||||
else {
|
||||
current = arrayOf("tunnel", height.value.toString(), width.value.toString(), "1000000")
|
||||
}
|
||||
|
||||
if (!current.contentEquals(lastCommand)) {
|
||||
lastCommand = current
|
||||
|
Loading…
Reference in New Issue
Block a user