Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace removed function pipeworks.string_startswith #379

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion technic_cnc/pipeworks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ end
local function on_receive_fields(pos, meta, fields, sender, update_formspec)
-- https://github.com/mt-mods/pipeworks/-/blob/master/common.lua#L115
for field,_ in pairs(fields) do
if pipeworks.string_startswith(field, "fs_helpers_cycling:") then
if string.sub(field, 1, 19) == "fs_helpers_cycling:" then
Emojigit marked this conversation as resolved.
Show resolved Hide resolved
if pipeworks.may_configure(pos, sender) then
pipeworks_on_receive_fields(pos, fields)
update_formspec(meta)
Expand Down
Loading