Skip to content

Commit

Permalink
workaround for ropes-cleanup crash, disabled until fix gets merged
Browse files Browse the repository at this point in the history
  • Loading branch information
BuckarooBanzay committed Apr 20, 2020
1 parent 1f8f432 commit 30d3ae4
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion compat/compat.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ local has_elevator_mod = minetest.get_modpath("elevator")
local has_display_mod = minetest.get_modpath("display_api")
local has_pipeworks_mod = minetest.get_modpath("pipeworks")
local has_beds_mod = minetest.get_modpath("beds")
local has_ropes_mod = minetest.get_modpath("ropes")

-- rope removal crashes with minetest >= 5.2 (get_content_id)
-- isse: https://github.com/minetest-mods/ropes/issues/19
-- local has_ropes_mod = minetest.get_modpath("ropes")
local has_sethome_mod = minetest.get_modpath("sethome")
local has_areas_mod = minetest.get_modpath("areas")
local has_drawers_mod = minetest.get_modpath("drawers")
Expand Down Expand Up @@ -74,9 +77,11 @@ jumpdrive.target_region_compat = function(source_pos1, source_pos2, target_pos1,
jumpdrive.beds_compat(target_pos1, target_pos2, delta_vector)
end

--[[
if has_ropes_mod then
jumpdrive.ropes_compat(target_pos1, target_pos2, delta_vector)
end
--]]

if has_areas_mod then
jumpdrive.areas_compat(source_pos1, source_pos2, delta_vector)
Expand Down

0 comments on commit 30d3ae4

Please sign in to comment.