Skip to content
This repository has been archived by the owner on Nov 25, 2022. It is now read-only.

Commit

Permalink
Reshuffled a little for cleaner release
Browse files Browse the repository at this point in the history
Also, disabled verbosity and added a VERSION.
The command now states the version rather than the dumb "Yes?"
  • Loading branch information
DemmyDemon committed Nov 10, 2019
1 parent 6d663ed commit 95ea4f0
Show file tree
Hide file tree
Showing 8 changed files with 9 additions and 12 deletions.
8 changes: 4 additions & 4 deletions __resource.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@ shared_scripts {
'@es_extended/locale.lua',
'locales/*.lua',
'config.lua',
'octree.lua',
'growth.lua',
'cropstate.lua',
'lib/octree.lua',
'lib/growth.lua',
'lib/cropstate.lua',
}
client_scripts {
'debug.lua',
'lib/debug.lua',
'cl_uteknark.lua',
}
server_scripts {
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
2 changes: 1 addition & 1 deletion locales/en-US.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Locales['en-US'] = {
growth_yield = 'Harvest',

command_invalid = 'Invalid directive: %s',
command_empty = 'Yes?',
command_empty = 'Version %s',

interact_text = 'Plant interaction',
interact_tended = 'Plant tended',
Expand Down
2 changes: 1 addition & 1 deletion locales/sv-SE.lua
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Locales['sv-SE'] = {
growth_yield = 'Skörda',

command_invalid = 'Ogiltigt direktiv: %s',
command_empty = 'Ja?',
command_empty = 'Versjon %s',

interact_text = 'Växtinteraktion',
interact_tended = 'Växt vårdad',
Expand Down
9 changes: 3 additions & 6 deletions sv_uteknark.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,11 @@ local ESX = nil
local ESXTries = 60
local oneSyncEnabled = GetConvar('onesync_enabled', false)
local octree = pOctree(vector3(0,1500,0),vector3(12000,12000,2000)) -- Covers the whole damn map!
local VERBOSE = true
local VERBOSE = false
local lastPlant = {}
local tickTimes = {}
local tickPlantCount = 0
local VERSION = '1.0.0'

AddEventHandler('playerDropped',function(why)
lastPlant[source] = nil
Expand Down Expand Up @@ -397,10 +398,6 @@ RegisterCommand('uteknark', function(source, args, raw)
inChat(source,_U('command_invalid', directive))
end
else
if source == 0 then
log('Uteknark at your service!')
else
inChat(source, _U('command_empty'))
end
inChat(source, _U('command_empty', VERSION))
end
end,true)

0 comments on commit 95ea4f0

Please sign in to comment.