Include forcer in hook (#2626)

This commit is contained in:
Brandon Sturgeon 2023-06-19 12:35:18 -07:00 committed by GitHub
parent d9a0572991
commit b20a7f005f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -81,7 +81,7 @@ function ENT:Think()
if not IsValid(self:GetPlayer()) or gamemode.Call( "GravGunPickupAllowed", self:GetPlayer(), ent )==false then return end
end
if hook.Run( "Wire_ForcerCanUse", self:GetPlayer(), ent ) == false then return end
if hook.Run( "Wire_ForcerCanUse", self:GetPlayer(), ent, self ) == false then return end
if ent:GetMoveType() == MOVETYPE_VPHYSICS then
local phys = ent:GetPhysicsObject()