mirror of
https://github.com/Refactorio/RedMew.git
synced 2025-01-22 03:39:09 +02:00
Merge pull request #753 from Jayefuu/patch-8
maps/line_and_trees.lua - Removed default ability to use landfill.
This commit is contained in:
commit
7179cad9db
@ -1,6 +1,7 @@
|
|||||||
local b = require "map_gen.shared.builders"
|
local b = require "map_gen.shared.builders"
|
||||||
local table = require 'utils.table'
|
local table = require 'utils.table'
|
||||||
local RS = require 'map_gen.shared.redmew_surface'
|
local RS = require 'map_gen.shared.redmew_surface'
|
||||||
|
local Event = require 'utils.event'
|
||||||
local MGSP = require 'resources.map_gen_settings'
|
local MGSP = require 'resources.map_gen_settings'
|
||||||
|
|
||||||
local degrees = require "utils.math".degrees
|
local degrees = require "utils.math".degrees
|
||||||
@ -131,4 +132,9 @@ map = b.change_map_gen_collision_tile(map, "water-tile", "grass-1")
|
|||||||
map = b.rotate(map, degrees(90))
|
map = b.rotate(map, degrees(90))
|
||||||
map = b.scale(map, 3, 3)
|
map = b.scale(map, 3, 3)
|
||||||
|
|
||||||
|
local function on_init()
|
||||||
|
game.forces['player'].technologies['landfill'].enabled = false
|
||||||
|
end
|
||||||
|
Event.on_init(on_init)
|
||||||
|
|
||||||
return map
|
return map
|
||||||
|
Loading…
x
Reference in New Issue
Block a user