1
0
mirror of https://github.com/Refactorio/RedMew.git synced 2024-12-12 10:04:40 +02:00

Fixed technology and inventory rename

Also fixed player -> character in types
This commit is contained in:
SimonFlapse 2019-05-02 16:53:12 +02:00
parent 8ae0a618aa
commit 69bdd747fb
3 changed files with 3 additions and 3 deletions

View File

@ -203,7 +203,7 @@ local function print_player_info(args, player)
Game.player_print(info_t)
if (not player or player.admin) and args.inventory then
local m_inventory = target.get_inventory(defines.inventory.player_main)
local m_inventory = target.get_inventory(defines.inventory.character_main)
m_inventory = m_inventory.get_contents()
Game.player_print('Main and hotbar inventories: ')
Game.player_print(serpent.line(m_inventory))

View File

@ -74,7 +74,7 @@ function Public.run_combined_module(event)
end
local function teleport_nearby_players(portal)
for _, player_character in pairs(portal.source.find_entities_filtered {area = {{portal.position.x - global.portal_radius, portal.position.y - global.portal_radius}, {portal.position.x + global.portal_radius, portal.position.y + global.portal_radius}}, name = 'player', type = 'player'}) do
for _, player_character in pairs(portal.source.find_entities_filtered {area = {{portal.position.x - global.portal_radius, portal.position.y - global.portal_radius}, {portal.position.x + global.portal_radius, portal.position.y + global.portal_radius}}, name = 'character', type = 'character'}) do
local player = player_character.player
if not global.last_tp[player.name] or global.last_tp[player.name] + global.teleport_cooldown * 60 < game.tick then
player.teleport(portal.target, portal.target_surface)

View File

@ -125,7 +125,7 @@ local military_techs = {
['night-vision-equipment'] = true,
['personal-laser-defense-equipment'] = true,
['power-armor'] = true,
['power-armor-2'] = true,
['power-armor-mk2'] = true,
['rocket-damage-1'] = true,
['rocket-damage-2'] = true,
['rocket-damage-3'] = true,