diff --git a/lua/entities/gmod_wire_expression2/core/entity.lua b/lua/entities/gmod_wire_expression2/core/entity.lua index 0f62b16435..737f128023 100644 --- a/lua/entities/gmod_wire_expression2/core/entity.lua +++ b/lua/entities/gmod_wire_expression2/core/entity.lua @@ -159,9 +159,7 @@ e2function number entity:setEditProperty(string key, string value) if not IsValid(this) then return self:throw("Invalid entity!", 0) end if not isOwner(self, this) then return self:throw("You do not own this entity!", 0) end if not this.Editable then return self:throw("Tried to edit non-editable entity!", 0) end - if not canProperty(self.player, this, "editentity") then return self:throw("Gamemode disallowed editing this entity!", 0) end - key = key:lower() local edit = this:GetEditingData()[key] if not edit then return self:throw("Property '" .. key .. "' does not exist on entity!", 0) end if not canEditVariable(this, self.player, key, value, edit) then return self:throw("Server disallowed editing this property!", 0) end