Removed versions from requires

This commit is contained in:
Cooldude2606
2018-12-09 16:23:35 +00:00
parent 56ad7f987c
commit 85efbd5cf8
58 changed files with 236 additions and 236 deletions

View File

@@ -4,8 +4,8 @@
-- @license https://github.com/explosivegaming/scenario/blob/master/LICENSE
local Game = require('FactorioStdLib.Game@^0.8.0')
local Role = require('ExpGamingCore.Role@^4.0.0')
local Game = require('FactorioStdLib.Game')
local Role = require('ExpGamingCore.Role')
-- Set an item to true to disallow it from being repaired
local disallow = {
@@ -24,7 +24,7 @@ local repairDisallow
local module_verbose = false
local ThisModule = {
on_init = function(self)
if loaded_modules['ExpGamingAdmin.TempBan@^4.0.0'] then verbose('ExpGamingAdmin.TempBan is installed; Loading tempban src') repairDisallow = require(module_path..'/src/tempban') end
if loaded_modules['ExpGamingAdmin.TempBan'] then verbose('ExpGamingAdmin.TempBan is installed; Loading tempban src') repairDisallow = require(module_path..'/src/tempban') end
end
}

View File

@@ -1,5 +1,5 @@
-- not_luadoc=true
local temp_ban = require('ExpGamingAdmin.AdminLib@^4.0.0').temp_ban
local temp_ban = require('ExpGamingAdmin.AdminLib').temp_ban
return function(player,entity)
player_return('You have repaired: '..entity.name..' this item is not allowed.',defines.textcolor.crit,player)
temp_ban(player,'<server>','Attempt To Repair A Banned Item')