diff --git a/lua/autorun/sh_glorifiedbanking_autoincluder.lua b/lua/autorun/sh_glorifiedbanking_autoincluder.lua index adbf4d4..5e1e61e 100644 --- a/lua/autorun/sh_glorifiedbanking_autoincluder.lua +++ b/lua/autorun/sh_glorifiedbanking_autoincluder.lua @@ -7,7 +7,7 @@ GlorifiedBanking = GlorifiedBanking or { Config = {}, - Version = "2.5.10" + Version = "2.5.11" } print( "[GlorifiedBanking] This server is running version " .. GlorifiedBanking.Version .. "." ) diff --git a/lua/weapons/gmod_tool/stools/gbatmplacer.lua b/lua/weapons/gmod_tool/stools/gbatmplacer.lua index 27110b6..2067c57 100644 --- a/lua/weapons/gmod_tool/stools/gbatmplacer.lua +++ b/lua/weapons/gmod_tool/stools/gbatmplacer.lua @@ -140,8 +140,7 @@ function TOOL:RightClick( tr ) local ent = tr.Entity if not tr.Hit or not IsValid( ent ) then return end if ent:GetClass() == "glorifiedbanking_atm" and GlorifiedBanking.HasPermission( self:GetOwner(), "glorifiedbanking_placeatms" ) then - GlorifiedPersistentEnts.RemoveEntityFromDB( ent ) - SafeRemoveEntity( ent ) + RunConsoleCommand( "gpe_removeent" ) end end