Introduce compatibility with mcl_rubber mod

Closes #1
This commit is contained in:
2024-02-26 17:06:11 +01:00
parent 7df191097d
commit d2346f65aa
7 changed files with 334 additions and 309 deletions

View File

@@ -15,7 +15,7 @@
-- along with this program. If not, see <http://www.gnu.org/licenses/>.
minetest.register_on_generated(function(minp,maxp,seed)
if industrialtest.random:next(1,100)>40 then
if industrialtest.mods.mclRubber or industrialtest.random:next(1,100)>40 then
return
end
local center=vector.new((maxp.x-minp.x)/2+ minp.x,(maxp.y-minp.y)/2+minp.y,(maxp.z-minp.z)/2+minp.z)