Skip to content

Commit

Permalink
check if msg is a string
Browse files Browse the repository at this point in the history
  • Loading branch information
OgelGames committed Sep 15, 2020
1 parent 3ecbecf commit 3916c3b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions hacks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ if minetest.get_modpath("digistuff") and minetest.registered_nodes["digistuff:ni
receptor = {},
effector = {
action = function(pos,node,channel,msg)
if type(msg) ~= "string" then return end
msg = string.gsub(msg, "%s", "%%20")
return old_action(pos,node,channel,msg)
end
Expand Down

0 comments on commit 3916c3b

Please sign in to comment.