fix using clientside method serverside

This commit is contained in:
DBotThePony 2023-02-19 12:41:39 +07:00
parent 14c0ff1476
commit 3a108c3b13
Signed by: DBot
GPG Key ID: DCC23B5715498507

View File

@ -58,7 +58,7 @@ class ItemHandlerPlayerInput(val menu: MatteryMenu, val allowPull: Boolean = tru
pull.withSupplier { pieces.values.all { it.pull.value } }
push.withSupplier { pieces.values.all { it.push.value } }
pull.withConsumer { v -> pieces.values.forEach { it.pull.input.input(v) } }
push.withConsumer { v -> pieces.values.forEach { it.push.input.input(v) } }
pull.withConsumer { v -> pieces.values.forEach { it.pull.input.invoke(v) } }
push.withConsumer { v -> pieces.values.forEach { it.push.input.invoke(v) } }
}
}