forked from mtcontrib/3d_armor
Move armor.get_translator to API
This commit is contained in:
committed by
Buckaroo Banzai
parent
4dc9a81ec2
commit
7fc9966945
@ -5,14 +5,12 @@ local last_punch_time = {}
|
||||
local pending_players = {}
|
||||
local timer = 0
|
||||
|
||||
-- local functions
|
||||
local S = minetest.get_translator(minetest.get_current_modname())
|
||||
local F = minetest.formspec_escape
|
||||
|
||||
armor.get_translator = S
|
||||
|
||||
dofile(modpath.."/api.lua")
|
||||
|
||||
-- local functions
|
||||
local F = minetest.formspec_escape
|
||||
local S = armor.get_translator
|
||||
|
||||
-- integration test
|
||||
if minetest.settings:get_bool("enable_3d_armor_integration_test") then
|
||||
dofile(modpath.."/integration_test.lua")
|
||||
|
Reference in New Issue
Block a user