diff options
| author | Alexander Pickering <alexandermpickering@gmail.com> | 2017-08-24 21:05:43 -0400 |
|---|---|---|
| committer | Alexander Pickering <alexandermpickering@gmail.com> | 2017-08-24 21:05:43 -0400 |
| commit | 9a5aaf34dc0b7cd11437600a088fe8883a820a95 (patch) | |
| tree | 1a7eed8f98180760084ae668d57592a729167af3 | |
| parent | cda70b47f13623d086188f686c005a017ccc5b25 (diff) | |
| download | artery_editor-9a5aaf34dc0b7cd11437600a088fe8883a820a95.tar.gz artery_editor-9a5aaf34dc0b7cd11437600a088fe8883a820a95.tar.bz2 artery_editor-9a5aaf34dc0b7cd11437600a088fe8883a820a95.zip | |
Fixed rename of info_huntable clashing
| -rw-r--r-- | lua/autorun/zone_town.lua | 3 | ||||
| -rw-r--r-- | lua/entities/info_edit_huntablespawn/init.lua | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/lua/autorun/zone_town.lua b/lua/autorun/zone_town.lua index a068021..abfc65b 100644 --- a/lua/autorun/zone_town.lua +++ b/lua/autorun/zone_town.lua @@ -57,6 +57,9 @@ if SERVER then PrintTable(new) if not ply:IsAdmin() then return end zones.List[id].npctbl = new + if new.Name then + zone.Name = new.Name + end zones.Sync() end) end diff --git a/lua/entities/info_edit_huntablespawn/init.lua b/lua/entities/info_edit_huntablespawn/init.lua index 777355f..295dba1 100644 --- a/lua/entities/info_edit_huntablespawn/init.lua +++ b/lua/entities/info_edit_huntablespawn/init.lua @@ -18,7 +18,7 @@ function ENT:Initialize() end local function save_huntable_spawns() - local all = ents.FindByClass("info_huntablespawn") + local all = ents.FindByClass("info_edit_huntablespawn") local buf = [[local h = nrequire("sv_huntingspawner.lua") ]] |
