Skip to content

Commit

Permalink
remove nic override
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Jun 22, 2021
1 parent 1d1e009 commit f5e7719
Showing 1 changed file with 0 additions and 18 deletions.
18 changes: 0 additions & 18 deletions hacks.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,24 +20,6 @@ end
-- there are still problems with the ipv6 range comming in from a single ipv4 ip
minetest.unregister_chatcommand("ban")

-- fix digiline nic functionality temporarily
-- issue: https://github.com/pandorabox-io/pandorabox.io/issues/539
if minetest.get_modpath("digistuff") and minetest.registered_nodes["digistuff:nic"] then
local old_action = minetest.registered_nodes["digistuff:nic"].digiline.effector.action
minetest.override_item("digistuff:nic",{
digiline = {
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
}
}
})
end

-- prevent big towers of papyrus and bamboo from being auto-dug
-- https://github.com/pandorabox-io/pandorabox.io/issues/611
function default.dig_up(pos, node, digger)
Expand Down

0 comments on commit f5e7719

Please sign in to comment.