summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeija <norrepli@gmail.com>2016-08-30 20:54:20 +0200
committerJeija <norrepli@gmail.com>2016-08-30 20:54:20 +0200
commitdfeb070a2066e9a0c7e41c6c509ec7c2b3d95f8b (patch)
treee635497b2dc06a48a5dacd93ba568bc2217ca159
parent6dacdaee1f942e1ba662ef017b9bde3a238f1732 (diff)
downloadmesecons-dfeb070a2066e9a0c7e41c6c509ec7c2b3d95f8b.tar
mesecons-dfeb070a2066e9a0c7e41c6c509ec7c2b3d95f8b.tar.gz
mesecons-dfeb070a2066e9a0c7e41c6c509ec7c2b3d95f8b.tar.bz2
mesecons-dfeb070a2066e9a0c7e41c6c509ec7c2b3d95f8b.tar.xz
mesecons-dfeb070a2066e9a0c7e41c6c509ec7c2b3d95f8b.zip
Remove some long unused legacy code
The change that required this compatibility layer happened in 2014, so other mods have had a lot of time to update.
-rw-r--r--mesecons/legacy.lua30
1 files changed, 0 insertions, 30 deletions
diff --git a/mesecons/legacy.lua b/mesecons/legacy.lua
index ca496f1..aba2e9b 100644
--- a/mesecons/legacy.lua
+++ b/mesecons/legacy.lua
@@ -1,33 +1,3 @@
--- Ugly hack to prevent breaking compatibility with other mods
--- Just remove the following two functions to delete the hack, to be done when other mods have updated
-function mesecon.receptor_on(self, pos, rules)
- if (self.receptor_on) then
- print("[Mesecons] Warning: A mod with mesecon support called mesecon:receptor_on.")
- print("[Mesecons] If you are the programmer of this mod, please update it ")
- print("[Mesecons] to use mesecon.receptor_on instead. mesecon:* is deprecated")
- print("[Mesecons] Otherwise, please make sure you're running the latest version")
- print("[Mesecons] of that mod and inform the mod creator.")
- else
- rules = pos
- pos = self
- end
- mesecon.queue:add_action(pos, "receptor_on", {rules}, nil, rules)
-end
-
-function mesecon.receptor_off(self, pos, rules)
- if (self.receptor_off) then
- print("[Mesecons] Warning: A mod with mesecon support called mesecon:receptor_off.")
- print("[Mesecons] If you are the programmer of this mod, please update it ")
- print("[Mesecons] to use mesecon.receptor_off instead. mesecon:* is deprecated")
- print("[Mesecons] Otherwise, please make sure you're running the latest version")
- print("[Mesecons] of that mod and inform the mod creator.")
- else
- rules = pos
- pos = self
- end
- mesecon.queue:add_action(pos, "receptor_off", {rules}, nil, rules)
-end
-
-- Un-forceload any forceloaded mapblocks from older versions of Mesecons which
-- used forceloading instead of VoxelManipulators.
local old_forceloaded_blocks = mesecon.file2table("mesecon_forceloaded")